|
16 | 16 | use function file_get_contents; |
17 | 17 | use function is_string; |
18 | 18 | use function passthru; |
19 | | -use function property_exists; |
20 | 19 | use function serialize; |
21 | 20 | use function spl_object_hash; |
22 | 21 | use function unlink; |
@@ -184,7 +183,6 @@ public function testAnnotationBasedInjection(): Injector |
184 | 183 | $this->assertInstanceOf(FakeMirrorInterface::class, $car->spareMirror); |
185 | 184 | $this->assertSame(spl_object_hash($car->rightMirror), spl_object_hash($car->spareMirror)); |
186 | 185 | $this->assertInstanceOf(FakeHandle::class, $car->handle); |
187 | | - assert($car->handle instanceof FakeHandle); |
188 | 186 | $this->assertSame($car->handle->logo, 'momo'); |
189 | 187 |
|
190 | 188 | return $injector; |
@@ -242,7 +240,6 @@ public function testSerializeBuiltinBinding(): void |
242 | 240 | $injector = unserialize(serialize(new Injector())); |
243 | 241 | assert($injector instanceof InjectorInterface); |
244 | 242 | $instance = $injector->getInstance(FakeBuiltin::class); |
245 | | - assert(property_exists($instance, 'injector')); |
246 | 243 | $this->assertInstanceOf(Injector::class, $instance->injector); |
247 | 244 | } |
248 | 245 |
|
@@ -430,9 +427,7 @@ protected function configure() |
430 | 427 | $instance = $injector->getInstance(FakeAop::class); |
431 | 428 | $result = $instance->returnSame(2); |
432 | 429 | $this->assertSame(2, $result); |
433 | | - assert(property_exists($instance, 'bindings')); |
434 | | - assert(isset($instance->bindings['returnSame'][0])); |
435 | | - $this->assertInstanceOf(NullInterceptor::class, $instance->bindings['returnSame'][0]); |
| 430 | + $this->assertInstanceOf(NullInterceptor::class, $instance->bindings['returnSame'][0]); // @phpstan-ignore-line |
436 | 431 | } |
437 | 432 |
|
438 | 433 | public function testModuleArray(): void |
|
0 commit comments