@@ -23,7 +23,7 @@ public function testPhpCodeScanner()
23
23
24
24
$ scanner ->scanFile ($ file );
25
25
26
- list ($ domain1 , $ domain2 , $ domain3 ) = array_values ( $ scanner ->getTranslations () );
26
+ list (' domain1 ' => $ domain1 , ' domain2 ' => $ domain2 , ' domain3 ' => $ domain3 ) = $ scanner ->getTranslations ();
27
27
28
28
$ this ->assertCount (6 , $ domain1 );
29
29
$ this ->assertCount (4 , $ domain2 );
@@ -44,7 +44,7 @@ public function testInvalidFunction()
44
44
$ scanner = new PhpScanner (Translations::create ('messages ' ));
45
45
$ scanner ->scanString ('<?php __(ucfirst("invalid function")); ' , 'file.php ' );
46
46
47
- list ($ translations ) = array_values ($ scanner ->getTranslations ());
47
+ list (' messages ' => $ translations ) = array_values ($ scanner ->getTranslations ());
48
48
49
49
$ this ->assertCount (0 , $ translations );
50
50
}
@@ -55,7 +55,7 @@ public function testIgnoredInvalidFunction()
55
55
$ scanner ->ignoreInvalidFunctions ();
56
56
$ scanner ->scanString ('<?php __(ucfirst("invalid function")); ' , 'file.php ' );
57
57
58
- list ($ translations ) = array_values ( $ scanner ->getTranslations () );
58
+ list (' messages ' => $ translations ) = $ scanner ->getTranslations ();
59
59
60
60
$ this ->assertCount (0 , $ translations );
61
61
}
0 commit comments