33namespace PHPStan \Reflection \Dibi ;
44
55use Dibi \Fluent ;
6- use PHPStan \Broker \ Broker ;
6+ use PHPStan \Reflection \ ReflectionProvider ;
77use PHPStan \Testing \PHPStanTestCase ;
88use PHPStan \Type \VerbosityLevel ;
99use stdClass ;
1010
1111class DibiFluentClassReflectionExtensionTest extends PHPStanTestCase
1212{
1313
14- private Broker $ broker ;
14+ private ReflectionProvider $ reflectionProvider ;
1515
1616 private DibiFluentClassReflectionExtension $ extension ;
1717
1818 protected function setUp (): void
1919 {
20- $ this ->broker = $ this ->createBroker ();
20+ $ this ->reflectionProvider = $ this ->createReflectionProvider ();
2121 $ this ->extension = new DibiFluentClassReflectionExtension ();
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 , 'select ' ));
4848 }
4949
5050 public function testGetMethod (): void
5151 {
52- $ classReflection = $ this ->broker ->getClass (Fluent::class);
52+ $ classReflection = $ this ->reflectionProvider ->getClass (Fluent::class);
5353 $ methodReflection = $ this ->extension ->getMethod ($ classReflection , 'select ' );
5454 $ parametersAcceptor = $ methodReflection ->getVariants ()[0 ];
5555 self ::assertSame ('select ' , $ methodReflection ->getName ());
0 commit comments