Merge pull request #7673 from nupplaphil/bug/dbunit

Remove DBUnit dependencies
This commit is contained in:
Hypolite Petovan 2019-09-28 20:35:54 -04:00 committed by GitHub
commit cbeceb35b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,17 +3,9 @@
* This file is loaded by PHPUnit before any test. * This file is loaded by PHPUnit before any test.
*/ */
use PHPUnit\DbUnit\DataSet\YamlDataSet;
use PHPUnit\DbUnit\TestCaseTrait;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
// Backward compatibility // Backward compatibility
if (!class_exists(TestCase::class)) { if (!class_exists(TestCase::class)) {
class_alias(PHPUnit_Framework_TestCase::class, TestCase::class); class_alias(PHPUnit_Framework_TestCase::class, TestCase::class);
} }
if (!trait_exists(TestCaseTrait::class)) {
class_alias(PHPUnit_Extensions_Database_TestCase_Trait::class, TestCaseTrait::class);
}
if (!class_exists(YamlDataSet::class)) {
class_alias(PHPUnit_Extensions_Database_DataSet_YamlDataSet::class, YamlDataSet::class);
}