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

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 209588c

Browse files
committed
Explicitly test invalid command behavior
1 parent 2cad38d commit 209588c

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