コード例 #1
0
 /**
  *    Starts empty.
  *    @param array $query       Hash of parameters.
  *                              Multiple values are
  *                              as lists on a single key.
  *    @access public
  */
 function __construct($query = false, $content_type = false)
 {
     parent::__construct($query, $content_type);
 }
コード例 #2
0
 function testTextEncodingWritesDefaultContentType()
 {
     $socket = new MockSimpleSocket();
     $socket->expectAt(0, 'write', array("Content-Length: 18\r\n"));
     $socket->expectAt(1, 'write', array("Content-Type: text/plain\r\n"));
     $encoding = new SimpleEntityEncoding('one two three four');
     $encoding->writeHeadersTo($socket);
 }