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