AcceptHeaderParserTest::shouldDecreaseWildcardsPriority PHP Метод

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

    public function shouldDecreaseWildcardsPriority()
    {
        //given
        $accept = 'text/plain, text/html, */*, text/*';
        //when
        $parsed = AcceptHeaderParser::parse($accept);
        //then
        $this->assertEquals(array_keys(array('text/plain' => null, 'text/html' => null, 'text/*' => null, '*/*' => null)), array_keys($parsed));
    }