values() public method

Gets an array of the values for a header
public values ( $name ) : array
return array
Example #1
0
 public function testSimpleUsage()
 {
     $collection = new Http\HeaderCollection();
     $collection->add('Content-Length: 9');
     $this->assertEquals($collection->values('Content-Length'), array('9'));
     $this->assertEquals($collection->value('Content-Length'), '9');
     $this->assertEquals($collection->toArray(false), array('Content-Length: 9'));
 }