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.

23 lines
652B

  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. require_once __DIR__.'/../boot.php';
  9. require_once __DIR__.'/../include/api.php';
  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. }