@@ -21,7 +21,7 @@ class WrappedListenerTest extends TestCase
21
21
/**
22
22
* @dataProvider provideListenersToDescribe
23
23
*/
24
- public function testListenerDescription (callable $ listener , $ expected )
24
+ public function testListenerDescription ($ listener , $ expected )
25
25
{
26
26
$ wrappedListener = new WrappedListener ($ listener , null , $ this ->getMockBuilder (Stopwatch::class)->getMock (), $ this ->getMockBuilder (EventDispatcherInterface::class)->getMock ());
27
27
@@ -34,6 +34,7 @@ public function provideListenersToDescribe()
34
34
[new FooListener (), 'Symfony\Component\EventDispatcher\Tests\Debug\FooListener::__invoke ' ],
35
35
[[new FooListener (), 'listen ' ], 'Symfony\Component\EventDispatcher\Tests\Debug\FooListener::listen ' ],
36
36
[['Symfony\Component\EventDispatcher\Tests\Debug\FooListener ' , 'listenStatic ' ], 'Symfony\Component\EventDispatcher\Tests\Debug\FooListener::listenStatic ' ],
37
+ [['Symfony\Component\EventDispatcher\Tests\Debug\FooListener ' , 'invalidMethod ' ], 'Symfony\Component\EventDispatcher\Tests\Debug\FooListener::invalidMethod ' ],
37
38
['var_dump ' , 'var_dump ' ],
38
39
[function () {}, 'closure ' ],
39
40
[\Closure::fromCallable ([new FooListener (), 'listen ' ]), 'Symfony\Component\EventDispatcher\Tests\Debug\FooListener::listen ' ],
0 commit comments