Esempio n. 1
0
 public function testRunWithoutCommand()
 {
     $this->expectOutputRegex('/Usage\\:  php -f entryPoint\\.php/');
     $this->_factoryMock->expects($this->never())->method('createStatusCommand');
     $this->_factoryMock->expects($this->never())->method('createCleanCommand');
     $this->_model->run();
 }
Esempio n. 2
0
 /**
  * Returns result of running model - can be real model or mocked one
  *
  * @param \Magento\Log\Model\Shell $model Can be mock
  * @return string
  */
 protected function _run($model)
 {
     ob_start();
     $model->run();
     $result = ob_get_contents();
     ob_end_clean();
     return $result;
 }