/** * lintModuleStructureShouldEnvokeAddMessage * @author Alistair Stead * @group lintClassFiles * @test */ public function lintModuleStructureShouldEnvokeAddMessage() { $testFilePath = $this->_invalidFixturePath . 'classfiles-config.xml'; $xml = file_get_contents($testFilePath); $config = new SimpleXMLElement($xml); // Configure the stub. $this->_stubLint->expects($this->exactly(3))->method('addMessage')->will($this->returnArgument(0)); $lint = new MageTool_Lint_Config(); $lint->setlint($this->_stubLint); $lint->setFilePath($testFilePath); $lint->setConfig($config); $lint->lintModuleStructure(); }