_ws = new WebSocket(new Application); } public function testServerImplementsServerInterface() { $constraint = $this->isInstanceOf('\\Ratchet\\SocketObserver'); $this->assertThat($this->_ws, $constraint); } public function testServerImplementsProtocolInterface() { $constraint = $this->isInstanceOf('\\Ratchet\\Protocol\ProtocolInterface'); $this->assertThat($this->_ws, $constraint); } public function testGetConfigReturnsArray() { $this->assertInternalType('array', $this->_ws->getDefaultConfig()); } }