public function testRestoreBackup() { $command = 'mysql ' . $this->_commandPrefix . ' ' . escapeshellarg('schema') . ' < ' . escapeshellarg($this->_varDir . DIRECTORY_SEPARATOR . 'test.sql'); $this->_model->expects($this->once())->method('_exec')->with($this->equalTo($command)); $this->_model->restoreBackup('test'); }