Esempio n. 1
0
 /**
  * @runInSeparateProcess
  */
 public function test_instance()
 {
     $this->assertNull(Header::instance());
     $property = new ReflectionProperty(__NAMESPACE__ . '\\Header', 'container');
     $property->setAccessible(true);
     $mock_header = $this->getMockHeaderObject();
     $property->setValue($mock_header);
     $this->assertSame($mock_header, Header::instance());
 }
Esempio n. 2
0
/**
 * Get the header collection.
 *
 * @return array
 */
function get()
{
    $headers = H\Header::instance();
    return $headers->parsed();
}