minor #12093 [EventDispatcher] fix RegisterListenersPass test (xabbuh)

This PR was merged into the 2.5 branch.

Discussion
----------

[EventDispatcher] fix RegisterListenersPass test

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

With #12088 being merged, the test needs to be adapted to reflect the 2.5 specific changes.

Commits
-------

9d2120b fix RegisterListenersPass test
This commit is contained in:
Fabien Potencier 2014-10-02 07:56:02 +02:00
commit adbde8ac7a

View File

@ -74,7 +74,7 @@ class RegisterListenersPassTest extends \PHPUnit_Framework_TestCase
$builder = $this->getMock( $builder = $this->getMock(
'Symfony\Component\DependencyInjection\ContainerBuilder', 'Symfony\Component\DependencyInjection\ContainerBuilder',
array('hasDefinition', 'findTaggedServiceIds', 'getDefinition') array('hasDefinition', 'findTaggedServiceIds', 'getDefinition', 'findDefinition')
); );
$builder->expects($this->any()) $builder->expects($this->any())
->method('hasDefinition') ->method('hasDefinition')