示例#1
0
 /**
  * Tests the JWeb::render method.
  *
  * @return  void
  *
  * @since   11.3
  */
 public function testRender()
 {
     $document = $this->getMockDocument();
     $this->assignMockReturns($document, array('render' => 'JWeb Body'));
     // Manually inject the document.
     $this->inspector->setClassProperty('document', $document);
     $this->inspector->render();
     $this->assertThat($this->inspector->getClassProperty('response')->body, $this->equalTo(array('JWeb Body')));
 }