public function testDidntSucceed()
 {
     $command = new Command();
     $command->exec("ls a/path/that/hopefully/doesnt/exist/if/it/does/craziness");
     $this->assertFalse($command->success());
 }
Example #2
0
 private function assertLocalFileDoesntExist($filePath)
 {
     $command = new Local\Command();
     $command->exec("cat " . escapeshellarg($filePath));
     $this->assertFalse($command->success());
 }