enableVerbose() public method

public enableVerbose ( boolean $enable = true ) : Nmap
$enable boolean
return Nmap
コード例 #1
0
ファイル: NmapTest.php プロジェクト: willdurand/nmap
 public function testScanWithVerbose()
 {
     $outputFile = __DIR__ . '/Fixtures/test_scan_with_verbose.xml';
     $expectedCommand = sprintf("nmap -v -oX '%s' 'williamdurand.fr'", $outputFile);
     $executor = $this->getProcessExecutorMock();
     $executor->expects($this->at(1))->method('execute')->with($this->equalTo($expectedCommand))->will($this->returnValue(0));
     $nmap = new Nmap($executor, $outputFile);
     $hosts = $nmap->enableVerbose()->scan(array('williamdurand.fr'));
 }