Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
570 B

4 years ago
  1. <?php
  2. /**
  3. * This file is loaded by PHPUnit before any test.
  4. */
  5. use PHPUnit\DbUnit\DataSet\YamlDataSet;
  6. use PHPUnit\DbUnit\TestCaseTrait;
  7. use PHPUnit\Framework\TestCase;
  8. // Backward compatibility
  9. if (!class_exists(TestCase::class)) {
  10. class_alias(PHPUnit_Framework_TestCase::class, TestCase::class);
  11. }
  12. if (!trait_exists(TestCaseTrait::class)) {
  13. class_alias(PHPUnit_Extensions_Database_TestCase_Trait::class, TestCaseTrait::class);
  14. }
  15. if (!class_exists(YamlDataSet::class)) {
  16. class_alias(PHPUnit_Extensions_Database_DataSet_YamlDataSet::class, YamlDataSet::class);
  17. }