Skip to content

Commit 492a55e

Browse files
author
Martin Qvistgård
committed
Use cat for test since head might not exist on all systems
1 parent 4a92d95 commit 492a55e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/CommandTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,12 @@ public function testCanProvideProcDir()
226226
}
227227
public function testCanRunCommandWithStandardInput()
228228
{
229-
$command = new Command('head');
230-
$command->addArg('-n', 1);
231-
$command->setStdIn("1\n2\n3\n");
229+
$command = new Command('/bin/cat');
230+
$command->addArg('-T');
231+
$command->setStdIn("\t");
232232
$this->assertTrue($command->execute());
233233
$this->assertTrue($command->getExecuted());
234-
$this->assertEquals("1", $command->getOutput());
234+
$this->assertEquals("^I", $command->getOutput());
235235
}
236236

237237
}

0 commit comments

Comments
 (0)