/**
  * Test Render
  *
  * @return  void
  */
 public function testRender()
 {
     $this->object->setBuffer('Unit Test Buffer');
     $this->assertThat($this->object->render(), $this->equalTo('Unit Test Buffer'));
     $headers = JFactory::getApplication()->getHeaders();
     foreach ($headers as $head) {
         if ($head['name'] == 'Expires') {
             $this->assertThat($head['value'], $this->stringContains('GMT'));
         }
     }
 }
예제 #2
0
 /**
  * @testdox  Test the default return for render
  */
 public function testTheDefaultReturnForRender()
 {
     $this->assertEmpty($this->object->render());
 }