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