File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Symfony/Component/EventDispatcher/Tests Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change
C131
@@ -54,19 +54,19 @@ public function testGetListenersDelegates()
54
54
$ this ->innerDispatcher ->expects ($ this ->once ())
55
55
->method ('getListeners ' )
56
56
->with ('event ' )
57
- ->willReturn ('result ' );
57
+ ->willReturn ([ 'result ' ] );
58
58
59
- $ this ->assertSame ('result ' , $ this ->dispatcher ->getListeners ('event ' ));
59
+ $ this ->assertSame ([ 'result ' ] , $ this ->dispatcher ->getListeners ('event ' ));
60
60
}
61
61
62
62
public function testHasListenersDelegates ()
63
63
{
64
64
$ this ->innerDispatcher ->expects ($ this ->once ())
65
65
->method ('hasListeners ' )
66
66
->with ('event ' )
67
- ->willReturn (' result ' );
67
+ ->willReturn (true );
68
68
69
- $ this ->assertSame ( ' result ' , $ this ->dispatcher ->hasListeners ('event ' ));
69
+ $ this ->assertTrue ( $ this ->dispatcher ->hasListeners ('event ' ));
70
70
}
71
71
72
72
public function testAddListenerDisallowed ()
You can’t perform that action at this time.
0 commit comments