/**
  * Add meta tags to header.
  *
  * @return void
  */
 protected function addMetaTags()
 {
     // Set up encoding:
     $headMeta = $this->getView()->plugin('headmeta');
     $headMeta()->prependHttpEquiv('Content-Type', 'text/html; charset=' . $this->container->getEncoding());
     // Set up generator:
     $generator = $this->container->getGenerator();
     if (!empty($generator)) {
         $headMeta()->appendName('Generator', $generator);
     }
 }
 /**
  * Test Generator set/get.
  *
  * @return void
  */
 public function testGenerator()
 {
     $container = new ResourceContainer();
     $container->setGenerator('fake');
     $this->assertEquals('fake', $container->getGenerator());
 }