File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
tests/Phing/Test/Task/Optional Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2424use Phing \Task \Ext \WikiPublishTask ;
2525use Phing \Test \Support \BuildFileTest ;
2626use PHPUnit \Framework \MockObject \MockObject ;
27+ use function array_find_key ;
2728
2829/**
2930 * WikiPublish task test.
@@ -63,7 +64,7 @@ public function testApiEdit(): void
6364 ->method ('callApi ' )
6465 ->willReturnCallback (function (string $ action , array |null $ args ) use ($ callParams , $ returnResults ): array {
6566 $ index = array_find_key ($ callParams , function (array $ value ) use ($ action , $ args ): bool {
66- return $ value [0 ] === $ action && ($ value [1 ] ?? null ) === $ args ;
67+ return $ value [0 ] === $ action && ($ value [1 ] ?? null ) === $ args ;
6768 });
6869 if (isset ($ callParams [$ index ])) {
6970 $ this ->assertSame ($ callParams [$ index ][1 ] ?? null , $ args );
You can’t perform that action at this time.
0 commit comments