/**
  * Tests the fillHeaderBackreferences() method
  *
  * @return void
  */
 public function testFillHeaderBackreferences()
 {
     // Get the objects we need
     $rewriteModule = new MockRewriteModule();
     $request = new HttpRequest();
     $serverContext = new ServerContext();
     // Do the thing
     $serverContext->init(new MockServerConfig(null));
     $rewriteModule->init($serverContext);
     $request->addHeader('Host', 'test-host.com');
     $rewriteModule->fillHeaderBackreferences($request);
     // Test what we got
     $this->assertTrue(isset($rewriteModule->getServerBackreferences()['$Host']));
     $this->assertTrue(isset($rewriteModule->getServerBackreferences()['$HTTP_HOST']));
     $this->assertEquals('test-host.com', $rewriteModule->getServerBackreferences()['$HTTP_HOST']);
 }