private getProcessExecutorMock ( ) : PHPUnit_Framework_MockObject_MockObject | ||
return | PHPUnit_Framework_MockObject_MockObject | | \Nmap\Util\ProcessExecutor |
private function getProcessExecutorMock()
{
$executor = $this->getMock('Nmap\\Util\\ProcessExecutor');
$executor->expects($this->at(0))->method('execute')->will($this->returnValue(0));
return $executor;
}