_phraseCollector = new MethodCollector( new Tokenizer() ); } public function testSignature() { $errors = []; foreach ($this->_getFiles() as $file) { $this->_phraseCollector->parse($file); foreach ($this->_phraseCollector->getPhrases() as $phrase) { $errors[] = $this->_createPhraseError($phrase); } } $this->assertEmpty( $errors, sprintf( '%d usages of the old translation method call were discovered: %s', count($errors), implode("\n\n", $errors) ) ); } }