Ejemplo n.º 1
0
 /**
  * Get a populated resource container for testing.
  *
  * @return ResourceContainer
  */
 protected function getResourceContainer()
 {
     $rc = new ResourceContainer();
     $rc->setEncoding('utf-8');
     $rc->setGenerator('fake-generator');
     return $rc;
 }
Ejemplo n.º 2
0
 /**
  * Test Generator set/get.
  *
  * @return void
  */
 public function testGenerator()
 {
     $container = new ResourceContainer();
     $container->setGenerator('fake');
     $this->assertEquals('fake', $container->getGenerator());
 }