_server = new WebServer(new Server(new Socket())); } public function testServerImplementsServerInterface() { $constraint = $this->isInstanceOf('\\Ratchet\\ServerInterface'); $this->assertThat($this->_server, $constraint); } public function testServerImplementsProtocolInterface() { $constraint = $this->isInstanceOf('\\Ratchet\\Protocol\ProtocolInterface'); $this->assertThat($this->_server, $constraint); } }