/** * @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()); }
/** * Get the header collection. * * @return array */ function get() { $headers = H\Header::instance(); return $headers->parsed(); }