Skip to content

Navigation Menu

Sign in
Appearance settings

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 41178ca

Browse filesBrowse files
committed
fixup! [Console] Add more context when CommandIsSuccessful fails
1 parent b56ebbe commit 41178ca
Copy full SHA for 41178ca

File tree

1 file changed

+7
-7
lines changed
Filter options

1 file changed

+7
-7
lines changed

‎src/Symfony/Component/Console/Tests/Tester/Constraint/CommandIsSuccessfulTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Tests/Tester/Constraint/CommandIsSuccessfulTest.php
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ public function testConstraint()
2828
$this->assertFalse($constraint->evaluate(Command::INVALID, '', true));
2929
}
3030

31-
public function providesUnsuccessful(): iterable
32-
{
33-
yield 'Failed' => ['Command failed.', Command::FAILURE];
34-
yield 'Invalid' => ['Command was invalid.', Command::INVALID];
35-
yield 'Exit code 3' => ['Command returned exit status 3.', 3];
36-
}
37-
3831
/**
3932
* @dataProvider providesUnsuccessful
4033
*/
@@ -53,4 +46,11 @@ public function testUnsuccessfulCommand(string $expectedException, int $exitCode
5346

5447
$this->fail();
5548
}
49+
50+
public function providesUnsuccessful(): iterable
51+
{
52+
yield 'Failed' => ['Command failed.', Command::FAILURE];
53+
yield 'Invalid' => ['Command was invalid.', Command::INVALID];
54+
yield 'Exit code 3' => ['Command returned exit status 3.', 3];
55+
}
5656
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.