Commit 2db6f51e authored by Simon Welsh's avatar Simon Welsh

Add a test for IsType having the $types property

Closes #19
parent d88509d5
<?hh // strict
namespace PHPUnitHHI;
class ConstraintTest extends HHITest {
public function testIsTypeHasTypes(): void {
$this->runTestFile('constraint/isType/hasTypes');
}
}
---FILE---
<?hh // strict
class PHPUnit_Hhi_Constraint extends PHPUnit\Framework\Constraint\IsType {
protected function foo(): void {
$this->types['foo'] = false;
}
}
---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