Skip to content

Commit 3017962

Browse files
gmponosfabpot
authored andcommitted
[Tests] Change to willThrowException
1 parent ef88e0d commit 3017962

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/ApplicationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ public function testRunReturnsIntegerExitCode()
919919
$application->setAutoExit(false);
920920
$application->expects($this->once())
921921
->method('doRun')
922-
->will($this->throwException($exception));
922+
->willThrowException($exception);
923923

924924
$exitCode = $application->run(new ArrayInput(array()), new NullOutput());
925925

@@ -958,7 +958,7 @@ public function testRunReturnsExitCodeOneForExceptionCodeZero()
958958
$application->setAutoExit(false);
959959
$application->expects($this->once())
960960
->method('doRun')
961-
->will($this->throwException($exception));
961+
->willThrowException($exception);
962962

963963
$exitCode = $application->run(new ArrayInput(array()), new NullOutput());
964964

0 commit comments

Comments
 (0)