Skip to content

Commit 27ba4b2

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: Fix the exception message expectation
2 parents dbb0ba8 + 0cef1ef commit 27ba4b2

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)