friendica/tests/bootstrap.php

20 wiersze
559 B
PHP
Czysty Zwykły widok Historia

2018-04-09 19:23:41 +00:00
<?php
2024-08-24 12:31:41 +00:00
// Copyright (C) 2010-2024, the Friendica project
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
//
// SPDX-License-Identifier: AGPL-3.0-or-later
2018-04-09 19:23:41 +00:00
use PHPUnit\Framework\TestCase;
2021-04-01 20:16:16 +00:00
if (!file_exists(__DIR__ . '/../vendor/autoload.php')) {
die('Vendor path not found. Please execute "bin/composer.phar --no-dev install" on the command line in the web root.');
}
require __DIR__ . '/../vendor/autoload.php';
2018-04-09 19:23:41 +00:00
// Backward compatibility
if (!class_exists(TestCase::class)) {
2021-05-16 21:22:44 +00:00
class_alias(\PHPUnit\Framework\TestCase::class, TestCase::class);
2018-04-09 19:23:41 +00:00
}