Skip to content

Commit 0cef1ef

Browse files
committed
Fix the exception message expectation
The message was changed between 2.3 and 2.7.
1 parent 237b13c commit 0cef1ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/Process/Tests/AbstractProcessTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,8 @@ public function testRestart()
762762
}
763763

764764
/**
765-
* @expectedException Symfony\Component\Process\Exception\RuntimeException
766-
* @expectedExceptionMessage The process timed-out.
765+
* @expectedException \Symfony\Component\Process\Exception\ProcessTimedOutException
766+
* @expectedExceptionMessage exceeded the timeout of 0.5 seconds.
767767
*/
768768
public function testRunProcessWithTimeout()
769769
{
@@ -801,8 +801,8 @@ public function testCheckTimeoutOnTerminatedProcess()
801801
}
802802

803803
/**
804-
* @expectedException Symfony\Component\Process\Exception\RuntimeException
805-
* @expectedExceptionMessage The process timed-out.
804+
* @expectedException \Symfony\Component\Process\Exception\ProcessTimedOutException
805+
* @expectedExceptionMessage exceeded the timeout of 0.5 seconds.
806806
*/
807807
public function testCheckTimeoutOnStartedProcess()
808808
{

0 commit comments

Comments
 (0)