Neos\Flow\Tests\Unit\Http\HeadersTest::removeRemovesTheSpecifiedHeader PHP Метод

removeRemovesTheSpecifiedHeader() публичный Метод

    public function removeRemovesTheSpecifiedHeader()
    {
        $specifiedFields = array('X-Coffee' => 'Arabica', 'Host' => 'myhost.com');
        $headers = new Headers($specifiedFields);
        $headers->remove('X-Coffee');
        $headers->remove('X-This-Does-Not-Exist-Anyway');
        $this->assertEquals(['Host' => ['myhost.com']], $headers->getAll());
    }