Ejemplo n.º 1
0
 /**
  * @todo Implement testLoadRenderer().
  */
 public function testLoadRenderer()
 {
     $this->object = new JDocument();
     $this->object->setType('html');
     $renderer = $this->object->loadRenderer('head');
     $this->assertThat($renderer, $this->isInstanceOf('JDocumentRendererHead'));
 }
Ejemplo n.º 2
0
	/**
	 * Test...
	 *
	 * @covers  JDocument::loadRenderer
	 * @expectedException RuntimeException
	 *
	 * @return void
	 */
	public function testLoadRendererException()
	{
		$this->object = new JDocument;
		$this->object->setType('html');
		$renderer = $this->object->loadRenderer('unknown');
	}
Ejemplo n.º 3
0
 /**
  * @testdox  Test that loadRenderer throws an exception for an unknown renderer type
  * @expectedException  RuntimeException
  *
  * @covers   JDocument::loadRenderer
  * @uses     JDocument::setType
  */
 public function testEnsureLoadRendererThrowsException()
 {
     $this->object->setType('html');
     $this->assertInstanceOf('JDocumentRendererHead', $this->object->loadRenderer('unknown'));
 }
Ejemplo n.º 4
0
 /**
  * @testdox  Test that loadRenderer throws an exception for an unknown renderer type
  * @expectedException  RuntimeException
  *
  * @covers   JDocument::loadRenderer
  * @uses     JDocument::setType
  */
 public function testEnsureLoadRendererThrowsException()
 {
     $this->object->setType('html');
     $this->object->loadRenderer('unknown');
 }