Hypernode\Magento\Command\Hypernode\Log\ParseLogCommandTest::testExecute PHP Метод

testExecute() публичный Метод

public testExecute ( )
    public function testExecute()
    {
        $command = $this->getCommand();
        \Mage::log('hypernode parse log test', null, 'hypernode.log', true);
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName(), 'top' => 20, '--log' => 'hypernode.log'));
        $result = $commandTester->getDisplay();
        $this->assertRegExp('/^(.*?(hypernode parse log test)[^$]*)$/m', $result);
    }