public function envTest() { $command = new Command(); $command->exec("echo \$CULLY_TEST_VARIABLE", null, ["CULLY_TEST_VARIABLE" => "works"]); $this->assertEquals("works", $command->getOutput()); }
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); } }