8000 [Console] Require PHP 7 for ApplicationTest by siwinski · Pull Request #23934 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Console] Require PHP 7 for ApplicationTest #23934

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[Console] Require PHP 7 for ApplicationTest
  • Loading branch information
siwinski committed Aug 23, 2017
commit 94d55ca0de7f7752ae18a285f8c62513e27e8575
10 changes: 10 additions & 0 deletions src/Symfony/Component/Console/Tests/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,9 @@ public function testRunDispatchesAllEventsWithExceptionInListener()
$this->assertContains('before.error.after.', $tester->getDisplay());
}

/**
* @requires PHP 7
*/
public function testRunWithError()
{
$application = new Application();
Expand Down Expand Up @@ -1160,6 +1163,7 @@ public function testErrorIsRethrownIfNotHandledByConsoleErrorEvent()
}

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

/**
* @requires PHP 7
*/
public function testRunDispatchesAllEventsWithError()
{
$application = new Application();
Expand All @@ -1198,6 +1205,9 @@ public function testRunDispatchesAllEventsWithError()
$this->assertContains('before.dym.error.after.', $tester->getDisplay(), 'The PHP Error did not dispached events');
}

/**
* @requires PHP 7
*/
public function testRunWithErrorFailingStatusCode()
{
$application = new Application();
Expand Down
0