We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 8 | class ProcessorTest extends TestCase |
||
| 9 | { |
||
| 10 | private $fixtures = [ |
||
| 11 | 'foo' => ['extends' => ['bar', 'baz'], 'type' => 'object', 'config' => []], |
||
| 12 | 'bar' => ['extends' => ['toto'], 'type' => 'object', 'config' => []], |
||
| 13 | 'baz' => ['type' => 'object', 'config' => []], |
||
| 14 | 'toto' => ['type' => 'interface', 'config' => []], |
||
| 15 | ]; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @expectedException \InvalidArgumentException |
||
| 19 | * @expectedExceptionMessage Type "toto" extends by "bar" not be found. |
||
| 20 | */ |
||
| 21 | public function testExtendsUnknownType() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @expectedException \InvalidArgumentException |
||
| 31 | * @expectedExceptionMessage Type circular inheritance detected (foo->bar->toto->foo). |
||
| 32 | */ |
||
| 33 | public function testCircularExtendsType() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @expectedException \InvalidArgumentException |
||
| 43 | * @expectedExceptionMessage Type "toto" can't extends "bar" because "enum" is not allowed type (["object","interface"]). |
||
| 44 | */ |
||
| 45 | public function testNotAllowedType() |
||
| 52 | } |
||
| 53 |