Ejemplo n.º 1
0
 /**
  * @param array $record
  */
 protected function write(array $record)
 {
     $lines = $this->splitMessageIntoLines($record['formatted']);
     foreach ($lines as $line) {
         $this->_socket->write($line);
     }
 }
 /**
  * @expectedException LogicException
  */
 public function testWriteAfterCloseErrors()
 {
     $socket = new UdpSocket('127.0.0.1', 514);
     $socket->close();
     $socket->write('foo', "HEADER");
 }