diff --git a/tests/PhpScannerTest.php b/tests/PhpScannerTest.php index bc95a5d..6ecb68d 100644 --- a/tests/PhpScannerTest.php +++ b/tests/PhpScannerTest.php @@ -23,7 +23,7 @@ public function testPhpCodeScanner() $scanner->scanFile($file); - list($domain1, $domain2, $domain3) = array_values($scanner->getTranslations()); + list('domain1' => $domain1, 'domain2' => $domain2, 'domain3' => $domain3) = $scanner->getTranslations(); $this->assertCount(6, $domain1); $this->assertCount(4, $domain2); @@ -44,7 +44,7 @@ public function testInvalidFunction() $scanner = new PhpScanner(Translations::create('messages')); $scanner->scanString('getTranslations()); + list('messages' => $translations) = array_values($scanner->getTranslations()); $this->assertCount(0, $translations); } @@ -55,7 +55,7 @@ public function testIgnoredInvalidFunction() $scanner->ignoreInvalidFunctions(); $scanner->scanString('getTranslations()); + list('messages' => $translations) = $scanner->getTranslations(); $this->assertCount(0, $translations); }