Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | public function testWebsocketServerOnSubscribe() |
||
11 | { |
||
12 | $app = new App\App(); |
||
13 | |||
14 | $app->topic('articles', function ($topicPattern) { |
||
15 | return new App\ArticleTopic($topicPattern); |
||
16 | }); |
||
17 | |||
18 | $wsApp = new \Eole\Sandstone\Websocket\Application($app); |
||
19 | $wsApp->setLogger(new NullLogger()); |
||
20 | |||
21 | $connectionMock = $this->getMock(WampConnection::class, [], [], '', false); |
||
22 | |||
23 | $wsApp->onSubscribe($connectionMock, 'articles'); |
||
24 | } |
||
25 | } |
||
26 |