]> git.mxchange.org Git - friendica.git/blob - tests/bootstrap.php
Merge pull request #6955 from tobiasd/20190331-vier
[friendica.git] / tests / bootstrap.php
1 <?php
2 /**
3  * This file is loaded by PHPUnit before any test.
4  */
5
6 use PHPUnit\DbUnit\DataSet\YamlDataSet;
7 use PHPUnit\DbUnit\TestCaseTrait;
8 use PHPUnit\Framework\TestCase;
9
10 // Backward compatibility
11 if (!class_exists(TestCase::class)) {
12         class_alias(PHPUnit_Framework_TestCase::class, TestCase::class);
13 }
14 if (!trait_exists(TestCaseTrait::class)) {
15         class_alias(PHPUnit_Extensions_Database_TestCase_Trait::class, TestCaseTrait::class);
16 }
17 if (!class_exists(YamlDataSet::class)) {
18         class_alias(PHPUnit_Extensions_Database_DataSet_YamlDataSet::class, YamlDataSet::class);
19 }