[ 'foo(); }', ], 'assertInstanceOfInterface' => [ 'bar(); $a->foo(); }', ], 'assertInstanceOfMultipleInterfaces' => [ 'bar(); $a->foo1(); }', ], 'assertInstanceOfBInClassMethod' => [ 'assertInstanceOfB($a); $a->foo(); } }', ], 'assertPropertyNotNull' => [ 'a) { throw new \Exception(); } } public function takesA(A $a): void { $this->assertNotNullProperty(); $a->foo(); } }', ], 'SKIPPED-assertInstanceOfClass' => [ 'foo(); }', ], ]; } /** * @return array */ public function providerFileCheckerInvalidCodeParse() { return [ 'assertInstanceOfMultipleInterfaces' => [ 'bar(); $a->foo1(); }', 'error_message' => 'UndefinedMethod', ], ]; } }