Commit c3c72352 authored by Simon Welsh's avatar Simon Welsh

Add phpunit\framework\TestCase

Is an alias of PHPUnit_Framework_TestCase that has been added for
forward compatibility.
parent 1babafde
Pipeline #125 passed with stages
in 47 seconds
......@@ -4,6 +4,7 @@
* Updated to match PHPUnit 5.4
* Added:
+ `phpunit\framework\TestCase`
+ `PHPUnit_Framework_TestCase::dataDescription`
+ `PHPUnit_Framework_TestCase::getGroups`
+ `PHPUnit_Framework_TestCase::hasSize`
......
<?hh // decl
namespace phpunit\framework;
class TestCase extends \PHPUnit_Framework_TestCase {}
<?hh // strict
namespace PHPUnitHHI;
class ForwardCompatTest extends HHITest {
public function testNamespaceTestCase(): void {
$this->runTestFile('forward-compat/namespace/TestCase');
}
}
---FILE---
<?hh // strict
namespace phpunit\hhi\test;
use phpunit\framework\TestCase as TestCase;
class Test extends TestCase {}
---PASS---
1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment