File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1717use Tidal \WampWatch \Stub \ClientSessionStub ;
1818use PHPUnit_Framework_TestCase ;
1919use stdClass ;
20+ use Thruway \Message ;
2021
2122/**
2223 * @author Timo Michna <[email protected] > @@ -401,12 +402,13 @@ public function test_get_sessioninfo_fail_emits_event()
401402
402403 $ monitor ->getSessionInfo (654 );
403404
404- $ sessionInfo = new stdClass ();
405- $ sessionInfo ->session = 654 ;
405+ $ errorMessage = $ this ->getMockBuilder (Message \ErrorMessage::class)
406+ ->disableOriginalConstructor ()
407+ ->getMock ();
406408
407- $ stub ->failCall (SessionMonitor::SESSION_INFO_TOPIC , $ sessionInfo );
409+ $ stub ->failCall (SessionMonitor::SESSION_INFO_TOPIC , $ errorMessage );
408410
409- $ this ->assertSame ($ sessionInfo , $ response );
411+ $ this ->assertSame ($ errorMessage , $ response );
410412 }
411413
412414 public function test_invalid_sessioninfo_does_not_get_added ()
You can’t perform that action at this time.
0 commit comments