8000 Explicitly test invalid command behavior · symfony/symfony@b56c0b0 · GitHub
[go: up one dir, main page]

Skip to content

Commit b56c0b0

Browse files
committed
Explicitly test invalid command behavior
1 parent 52b9c00 commit b56c0b0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Symfony/Component/Process/Tests/ProcessTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ public function testInvalidCwd()
6666
$cmd->run();
6767
}
6868

69+
public function testInvalidCommand()
70+
{
71+
$cmd = new Process(['invalid']);
72+
$this->assertSame(127, $cmd->run());
73+
74+
$cmd = Process::fromShellCommandline('invalid');
75+
$this->assertSame(127, $cmd->run());
76+
}
77+
6978
/**
7079
* @group transient-on-windows
7180
*/

0 commit comments

Comments
 (0)
0