/** * @expectedException LogicException */ public function testWriteAfterCloseErrors() { $socket = new UdpSocket('127.0.0.1', 514); $socket->close(); $socket->write('foo', "HEADER"); }
/** * @return null */ public function close() { $this->_socket->close(); }