public function testExecutableNotExecutable() { $executor = $this->getMock('Nmap\\Util\\ProcessExecutor'); $executor->expects($this->once())->method('execute')->will($this->returnValue(1)); new Nmap($executor); }