/** * Execute a command * * @param string $sCommand * * @return boolean * * @throws \Testy\Project\Test\Exception If the test fails */ protected function _execute($sCommand) { $this->_iCommands++; $this->_sLastCommand = $sCommand; $oCommand = $this->_oProject->getCommand(); $this->_sReturn = $oCommand->setCommand($this->_sLastCommand)->execute()->get(); if ($oCommand->isSuccess() !== true) { throw new \Testy\Project\Test\Exception($this->_sReturn); } return $oCommand->isSuccess(); }