Skip to content

Commit 94d55ca

Browse files
committed
[Console] Require PHP 7 for ApplicationTest
1 parent 420f089 commit 94d55ca

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Symfony/Component/Console/Tests/ApplicationTest.php

+10
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,9 @@ public function testRunDispatchesAllEventsWithExceptionInListener()
10401040
$this->assertContains('before.error.after.', $tester->getDisplay());
10411041
}
10421042

1043+
/**
1044+
* @requires PHP 7
1045+
*/
10431046
public function testRunWithError()
10441047
{
10451048
$application = new Application();
@@ -1160,6 +1163,7 @@ public function testErrorIsRethrownIfNotHandledByConsoleErrorEvent()
11601163
}
11611164

11621165
/**
1166+
* @requires PHP 7
11631167
* @expectedException \LogicException
11641168
* @expectedExceptionMessage error
11651169
*/
@@ -1181,6 +1185,9 @@ public function testRunWithErrorAndDispatcher()
11811185
$this->assertContains('before.dym.error.after.', $tester->getDisplay(), 'The PHP Error did not dispached events');
11821186
}
11831187

1188+
/**
1189+
* @requires PHP 7
1190+
*/
11841191
public function testRunDispatchesAllEventsWithError()
11851192
{
11861193
$application = new Application();
@@ -1198,6 +1205,9 @@ public function testRunDispatchesAllEventsWithError()
11981205
$this->assertContains('before.dym.error.after.', $tester->getDisplay(), 'The PHP Error did not dispached events');
11991206
}
12001207

1208+
/**
1209+
* @requires PHP 7
1210+
*/
12011211
public function testRunWithErrorFailingStatusCode()
12021212
{
12031213
$application = new Application();

0 commit comments

Comments
 (0)