_catalyst = new Socket; $this->_app = new TestApp; $this->_server = new Server($this->_app); } protected function getPrivateProperty($class, $name) { $reflectedClass = new \ReflectionClass($class); $property = $reflectedClass->getProperty($name); $property->setAccessible(true); return $property->getValue($class); } public function testBindToInvalidAddress() { return $this->markTestIncomplete(); $app = new TestApp(); $this->_server->attatchReceiver($app); $this->setExpectedException('\\Ratchet\\Exception'); $this->_server->run('la la la', 80); } }