__toString() public method

Returns the headers as a string.
public __toString ( ) : string
return string The headers
Ejemplo n.º 1
0
 public function testToStringNotNull()
 {
     $bag = new HeaderBag(array('foo' => 'bar'));
     $this->assertEquals("Foo: bar\r\n", $bag->__toString());
 }