minor #18978 [Debug] Fix context dependent test (nicolas-grekas)

This PR was merged into the 2.7 branch.

Discussion
----------

[Debug] Fix context dependent test

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

9fc48b8 [Debug] Fix context dependent test
This commit is contained in:
Nicolas Grekas 2016-06-06 14:14:53 +02:00
commit 758c51dd98
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ class ErrorHandlerTest extends \PHPUnit_Framework_TestCase
$handler->handleException($exception);
$this->assertInstanceOf('Symfony\Component\Debug\Exception\ClassNotFoundException', $args[0]);
$this->assertSame("Attempted to load class \"Foo\" from the global namespace.\nDid you forget a \"use\" statement?", $args[0]->getMessage());
$this->assertStringStartsWith("Attempted to load class \"Foo\" from the global namespace.\nDid you forget a \"use\" statement", $args[0]->getMessage());
}
public function testHandleFatalErrorOnHHVM()