@@ -53,7 +53,7 @@ public function it_knows_if_it_can_handle_a_method_call(string $methodName, bool
5353 ->classMetadata [ClassForFixtureBuilderTesting::class];
5454
5555 // when checking if the handler is registered for a method
56- $ canHandle = $ callHandler ->canHandle ($ methodName , $ classMetadata );
56+ $ canHandle = $ callHandler ->canHandle ($ methodName , $ classMetadata, [] );
5757
5858 // then the result is as expeced
5959 $ this ->assertSame ($ expectedCanHandle , $ canHandle );
@@ -73,14 +73,14 @@ public function it_cannot_handle_a_with_method_if_build_method_is_missing()
7373 ->classMetadata [ClassForFixtureBuilderTesting::class];
7474 // and a method name that would be supported (if build() is available)
7575 $ methodName = 'withSomeProperty ' ;
76- Assert::true ($ callHandler ->canHandle ($ methodName , $ classMetadata ));
76+ Assert::true ($ callHandler ->canHandle ($ methodName , $ classMetadata, [] ));
7777 // but the ClassMetadata has no build() method
7878 /** @var ClassMetadata $classMetadata */
7979 $ classMetadata = clone $ classMetadata ;
8080 unset($ classMetadata ->features [VirtualMethods::FEATURES_KEY ]['build ' ]);
8181
8282 // when checking if the handler can handle a with method
83- $ result = $ callHandler ->canHandle ($ methodName , $ classMetadata );
83+ $ result = $ callHandler ->canHandle ($ methodName , $ classMetadata, [] );
8484
8585 // then the result is false
8686 $ this ->assertFalse ($ result );
@@ -101,7 +101,7 @@ public function it_cannot_handle_a_with_method_if_builder_method_has_no_return_t
101101 ->classMetadata [ClassForFixtureBuilderTesting::class];
102102 // and a method name that would be supported (if build() would have a return type)
103103 $ methodName = 'withSomeProperty ' ;
104- Assert::true ($ callHandler ->canHandle ($ methodName , $ classMetadata ));
104+ Assert::true ($ callHandler ->canHandle ($ methodName , $ classMetadata, [] ));
105105 // but the ClassMetadata's build() method has no return type
106106 $ classMetadata = clone $ classMetadata ;
107107 $ classMetadata ->features [VirtualMethods::FEATURES_KEY ]['build ' ] =
@@ -113,7 +113,7 @@ public function it_cannot_handle_a_with_method_if_builder_method_has_no_return_t
113113 );
114114
115115 // when checking if the handler can handle a with method
116- $ result = $ callHandler ->canHandle ($ methodName , $ classMetadata );
116+ $ result = $ callHandler ->canHandle ($ methodName , $ classMetadata, [] );
117117
118118 // then the result is false
119119 $ this ->assertFalse ($ result );
0 commit comments