-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
use Tidal\WampWatch\Stub\ClientSessionStub; | ||
use PHPUnit_Framework_TestCase; | ||
use stdClass; | ||
use Thruway\Message; | ||
|
||
/** | ||
* @author Timo Michna <[email protected]> | ||
|
@@ -401,12 +402,13 @@ public function test_get_sessioninfo_fail_emits_event() | |
|
||
$monitor->getSessionInfo(654); | ||
|
||
$sessionInfo = new stdClass(); | ||
$sessionInfo->session = 654; | ||
$errorMessage = $this->getMockBuilder(Message\ErrorMessage::class) | ||
->disableOriginalConstructor() | ||
->getMock(); | ||
|
||
$stub->failCall(SessionMonitor::SESSION_INFO_TOPIC, $sessionInfo); | ||
$stub->failCall(SessionMonitor::SESSION_INFO_TOPIC, $errorMessage); | ||
|
||
$this->assertSame($sessionInfo, $response); | ||
$this->assertSame($errorMessage, $response); | ||
} | ||
|
||
public function test_invalid_sessioninfo_does_not_get_added() | ||
|