@@ -91,7 +91,7 @@ public function testCache() : void
9191 $ this ->assertSame ('foo ' , $ loader ->getCacheKey ());
9292
9393 $ descriptor = new Route ('controller-from-cached-descriptor ' , null , '/ ' );
94- $ descriptor ->holder = new ReflectionClass ( Fixtures \Controllers \BlankController::class) ;
94+ $ descriptor ->holder = Fixtures \Controllers \BlankController::class;
9595
9696 $ cache ->storage [$ loader ->getCacheKey ()][0 ] = $ descriptor ;
9797
@@ -148,8 +148,6 @@ public function testLoadMinimallyAnnotatedClass() : void
148148 $ this ->assertSame ('minimally-annotated-controller ' , $ route ->getName ());
149149 $ this ->assertSame ('/ ' , $ route ->getPath ());
150150 $ this ->assertSame (['GET ' ], $ route ->getMethods ());
151- $ this ->assertNotNull ($ route ->getHolder ());
152- $ this ->assertSame ($ class , $ route ->getHolder ()->getName ());
153151 }
154152
155153 /**
@@ -174,8 +172,6 @@ public function testLoadMinimallyAttributedClass() : void
174172 $ this ->assertSame ('minimally-attributed-controller ' , $ route ->getName ());
175173 $ this ->assertSame ('/ ' , $ route ->getPath ());
176174 $ this ->assertSame (['GET ' ], $ route ->getMethods ());
177- $ this ->assertNotNull ($ route ->getHolder ());
178- $ this ->assertSame ($ class , $ route ->getHolder ()->getName ());
179175 }
180176
181177 /**
0 commit comments