コード例 #1
0
 public function testDidntSucceed()
 {
     $command = new Command();
     $command->exec("ls a/path/that/hopefully/doesnt/exist/if/it/does/craziness");
     $this->assertFalse($command->success());
 }
コード例 #2
0
ファイル: CopyTest.php プロジェクト: cullylarson/ssh-copy
 private function assertLocalFileDoesntExist($filePath)
 {
     $command = new Local\Command();
     $command->exec("cat " . escapeshellarg($filePath));
     $this->assertFalse($command->success());
 }