[ 'code' => <<<'PHP' isSubclassOf(Iterator::class)) { throw new Exception(); } PHP, 'assertions' => ['$a===' => 'ReflectionClass'], ]; yield 'ReflectionClass::implementsInterface' => [ 'code' => <<<'PHP' implementsInterface(Iterator::class)) { throw new Exception(); } PHP, 'assertions' => ['$a===' => 'ReflectionClass'], ]; yield 'ReflectionClass::isInstance' => [ 'code' => <<<'PHP' isInstance($a)) { throw new Exception(); } PHP, 'assertions' => ['$a===' => 'Iterator&stdClass'], ]; } }