Пример #1
0
 /**
  * @dataProvider providerParseIfMatch
  */
 public function testParseIfMatch($expected, $value)
 {
     $result = Header::parseIfMatch($value);
     $this->assertEquals($expected, $result);
 }
Пример #2
0
 /**
  * Gets the
  * Enter description here ...
  * @return Ambigous <string, multitype:, NULL, multitype:NULL >
  */
 public function getIfNoneMatch()
 {
     if (isset($this->ifNoneMatch)) {
         return $this->ifNoneMatch;
     }
     $header = $this->getHeader(Header::HEADER_IF_NONE_MATCH);
     if (!$header) {
         return $this->ifNoneMatch = array();
     }
     return $this->ifNoneMatch = Header::parseIfMatch($header);
 }