public function testGetSubProtocolsReturnsArray()
 {
     $this->assertInternalType('array', $this->mngr->getSubProtocols());
 }
 public function testGetSubProtocolsBubbles()
 {
     $subs = array('hello', 'world');
     $app = $this->getMock('Ratchet\\Tests\\Wamp\\Stub\\WsWampServerInterface');
     $app->expects($this->once())->method('getSubProtocols')->will($this->returnValue($subs));
     $mngr = new TopicManager($app);
     $this->assertEquals($subs, $mngr->getSubProtocols());
 }