namespace Symfony\Component\HttpFoundation\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\HeaderBag;
class HeaderBagTest extends TestCase
{ public function testConstructor() { $bag =
new HeaderBag(['foo' => 'bar'
]);
$this->
assertTrue($bag->
has('foo'
));
} public function testToStringNull() { $bag =
new HeaderBag();
$this->
assertEquals('',
$bag->
__toString());
} public function testToStringNotNull() {