parse() public static method

public static parse ( $data )
 /**
  * @test
  */
 public function shouldReturnEmptyArrayForNull()
 {
     //when
     $parsed = AcceptHeaderParser::parse(null);
     //then
     $this->assertEmpty($parsed);
 }
Beispiel #2
0
 public static function accept()
 {
     $accept = Arrays::getValue($_SERVER, 'HTTP_ACCEPT');
     return AcceptHeaderParser::parse($accept);
 }