Commit 7e2cc2ca authored by Simon Welsh's avatar Simon Welsh

Rename the forward-compat namespace

Case has changed upstream.
parent f7bd3c2e
Pipeline #140 passed with stages
in 2 minutes and 6 seconds
......@@ -3,6 +3,8 @@
## 5.5.0
* Updated to match PHPUnit 5.5
* Renamed:
+ `phpunit\framework\TestCase` to `PHPUnit\Framework\TestCase`
## 5.4.0
......
<?hh // decl
namespace phpunit\framework;
namespace PHPUnit\Framework;
class TestCase extends \PHPUnit_Framework_TestCase {}
......@@ -6,4 +6,8 @@ class ForwardCompatTest extends HHITest {
public function testNamespaceTestCase(): void {
$this->runTestFile('forward-compat/namespace/TestCase');
}
public function testOldNamespaceTestCase(): void {
$this->runTestFile('forward-compat/namespace/OldNamespace');
}
}
---FILE---
<?hh // strict
namespace phpunit\hhi\test;
use phpunit\framework\TestCase as TestCase;
class Test extends TestCase {}
---PASS---
0
---ERRORS---
7:2006:Could not find phpunit\framework\TestCase. Did you mean PHPUnit\Framework\TestCase?.
......@@ -3,7 +3,7 @@
namespace phpunit\hhi\test;
use phpunit\framework\TestCase as TestCase;
use PHPUnit\Framework\TestCase as TestCase;
class Test extends TestCase {}
---PASS---
......
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