예제 #1
0
 public function envTest()
 {
     $command = new Command();
     $command->exec("echo \$CULLY_TEST_VARIABLE", null, ["CULLY_TEST_VARIABLE" => "works"]);
     $this->assertEquals("works", $command->getOutput());
 }
예제 #2
0
 private function assertLocalFileExists($filePath, $contents = null)
 {
     $command = new Local\Command();
     $command->exec("cat " . escapeshellarg($filePath));
     $this->assertTrue($command->success());
     if ($contents !== null) {
         $this->assertEquals($command->getOutput(), $contents);
     }
 }