Fix the exception message expectation

The message was changed between 2.3 and 2.7.
This commit is contained in:
Christophe Coevoet 2015-12-05 19:10:05 +01:00
parent 237b13c56c
commit 0cef1ef54c

View File

@ -762,8 +762,8 @@ abstract class AbstractProcessTest extends \PHPUnit_Framework_TestCase
} }
/** /**
* @expectedException Symfony\Component\Process\Exception\RuntimeException * @expectedException \Symfony\Component\Process\Exception\ProcessTimedOutException
* @expectedExceptionMessage The process timed-out. * @expectedExceptionMessage exceeded the timeout of 0.5 seconds.
*/ */
public function testRunProcessWithTimeout() public function testRunProcessWithTimeout()
{ {
@ -801,8 +801,8 @@ abstract class AbstractProcessTest extends \PHPUnit_Framework_TestCase
} }
/** /**
* @expectedException Symfony\Component\Process\Exception\RuntimeException * @expectedException \Symfony\Component\Process\Exception\ProcessTimedOutException
* @expectedExceptionMessage The process timed-out. * @expectedExceptionMessage exceeded the timeout of 0.5 seconds.
*/ */
public function testCheckTimeoutOnStartedProcess() public function testCheckTimeoutOnStartedProcess()
{ {