tests/Http/Headers/MediaTypeTest.php
/**
     * Test compare media types (case sensitive)
     *
     * @return void
     */
Test compare media types (case sensitive)
@return void
Test compare media types ( case sensitive ) @return void
public function testCompareMediaTypes2(): void
    {
        $type1 = new MediaType('text', 'html', ['case-sensitive-value' => 'whatever']);
        $type2 = new MediaType('text', 'html', ['case-sensitive-value' => 'WHATEVER']);
        $type3 = new MediaType('text', 'html', ['CASE-SENSITIVE-VALUE' => 'whatever']);
        self::assertFalse($type1->equalsTo($type2));
        self::assertTrue($type1->equalsTo($type3));
    }
public function testCompareMediaTypes2 ( ) : void { $ type1 = new MediaType ( 'text' , 'html' , [ 'case-sensitive-value' => 'whatever' ] ) ; $ type2 = new MediaType ( 'text' , 'html' , [ 'case-sensitive-value' => 'WHATEVER' ] ) ; $ type3 = new MediaType ( 'text' , 'html' , [ 'CASE-SENSITIVE-VALUE' => 'whatever' ] ) ; self :: assertFalse ( $ type1 -> equalsTo ( $ type2 ) ) ; self :: assertTrue ( $ type1 -> equalsTo ( $ type3 ) ) ; }
Test compare media types (case sensitive)
 @return void
Test compare media types ( case sensitive ) @return void