Add API tests
This commit is contained in:
parent
9bb11ccfa5
commit
3195d6e125
12 changed files with 5342 additions and 15 deletions
22
tests/bootstrap.php
Normal file
22
tests/bootstrap.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is loaded by PHPUnit before any test.
|
||||
*/
|
||||
|
||||
use PHPUnit\DbUnit\DataSet\YamlDataSet;
|
||||
use PHPUnit\DbUnit\TestCaseTrait;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
require_once __DIR__.'/../boot.php';
|
||||
require_once __DIR__.'/../include/api.php';
|
||||
|
||||
// Backward compatibility
|
||||
if (!class_exists(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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue