33namespace PHPStan \Reflection \Nette ;
44
55use Nette \Utils \Html ;
6- use PHPStan \Broker \ Broker ;
6+ use PHPStan \Reflection \ ReflectionProvider ;
77use PHPStan \Testing \PHPStanTestCase ;
88use PHPStan \Type \VerbosityLevel ;
99use stdClass ;
1010
1111class HtmlClassReflectionExtensionTest extends PHPStanTestCase
1212{
1313
14- private Broker $ broker ;
14+ private ReflectionProvider $ reflectionProvider ;
1515
1616 private HtmlClassReflectionExtension $ extension ;
1717
1818 protected function setUp (): void
1919 {
20- $ this ->broker = $ this ->createBroker ();
20+ $ this ->reflectionProvider = $ this ->createReflectionProvider ();
2121 $ this ->extension = new HtmlClassReflectionExtension ();
2222 }
2323
@@ -43,13 +43,13 @@ public function dataHasMethod(): array
4343 */
4444 public function testHasMethod (string $ className , bool $ result ): void
4545 {
46- $ classReflection = $ this ->broker ->getClass ($ className );
46+ $ classReflection = $ this ->reflectionProvider ->getClass ($ className );
4747 self ::assertSame ($ result , $ this ->extension ->hasMethod ($ classReflection , 'href ' ));
4848 }
4949
5050 public function testGetMethod (): void
5151 {
52- $ classReflection = $ this ->broker ->getClass (Html::class);
52+ $ classReflection = $ this ->reflectionProvider ->getClass (Html::class);
5353 $ methodReflection = $ this ->extension ->getMethod ($ classReflection , 'href ' );
5454 $ parametersAcceptor = $ methodReflection ->getVariants ()[0 ];
5555 self ::assertSame ('href ' , $ methodReflection ->getName ());
@@ -84,13 +84,13 @@ public function dataHasProperty(): array
8484 */
8585 public function testHasProperty (string $ className , bool $ result ): void
8686 {
87- $ classReflection = $ this ->broker ->getClass ($ className );
87+ $ classReflection = $ this ->reflectionProvider ->getClass ($ className );
8888 self ::assertSame ($ result , $ this ->extension ->hasProperty ($ classReflection , 'href ' ));
8989 }
9090
9191 public function testGetProperty (): void
9292 {
93- $ classReflection = $ this ->broker ->getClass (Html::class);
93+ $ classReflection = $ this ->reflectionProvider ->getClass (Html::class);
9494 $ propertyReflection = $ this ->extension ->getProperty ($ classReflection , 'href ' );
9595 self ::assertSame ($ classReflection , $ propertyReflection ->getDeclaringClass ());
9696 self ::assertFalse ($ propertyReflection ->isStatic ());
0 commit comments