Commit 89de1c40 authored by Simon Welsh's avatar Simon Welsh

Add a test for non-namespace base class

It's been removed, so uses of it should error.
parent 81d2d6d8
......@@ -26,5 +26,7 @@ class TestCaseTest extends HHITest {
$this->runTestFile('testcase/removed/setExpectedExceptionRegExp');
}
public function testRemovedNonNamespaceClass(): void {
$this->runTestFile('testcase/removed/nonNamespaceClass');
}
}
---FILE---
<?hh // strict
class PHPUnit_Hhi_Test extends PHPUnit_Framework_TestCase {}
---PASS---
0
---ERRORS---
3:2049:Unbound name: PHPUnit_Framework_TestCase (an object type).
3:4123:PHPUnit_Hhi_Test has a non-<?hh grandparent; this is not allowed in strict mode because that parent may define methods of unknowable name and type.
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