minor #18979 [HttpKernel] Fix context dependent test (nicolas-grekas)

This PR was merged into the 2.7 branch.

Discussion
----------

[HttpKernel] 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        | -

Class `Foo` exists when the ClassLoader component is tested alongside with HttpKernel

Commits
-------

065dee8 [HttpKernel] Fix context dependent test
This commit is contained in:
Nicolas Grekas 2016-06-06 14:26:28 +02:00
commit 2e938491d6
2 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ class ControllerResolverTest extends BaseControllerResolverTest
{
return array(
array('foo', '\LogicException', 'Unable to parse the controller name "foo".'),
array('foo::bar', '\InvalidArgumentException', 'Class "foo" does not exist.'),
array('oof::bar', '\InvalidArgumentException', 'Class "oof" does not exist.'),
array('stdClass', '\LogicException', 'Unable to parse the controller name "stdClass".'),
array(
'Symfony\Component\HttpKernel\Tests\Controller\ControllerResolverTest::bar',

View File

@ -127,7 +127,7 @@ class ControllerResolverTest extends \PHPUnit_Framework_TestCase
{
return array(
array('foo'),
array('foo::bar'),
array('oof::bar'),
array('stdClass'),
array('Symfony\Component\HttpKernel\Tests\Controller\ControllerResolverTest::bar'),
);