示例#1
0
 /**
  * tests that output is generated as expected using a template
  *
  * @author Daniel Sherman
  * @test
  * @depends testConstruct
  * @depends testSetTemplateValid
  * @depends testGenerateDefaultOutput
  * @covers ::generateOutput
  */
 public function testGenerateOutputWithTemplate()
 {
     $temp = self::$fixturePath . 'HandlerTemplate.php';
     $result = self::$handler->setTemplate($temp);
     $msg = 'unable to set a valid template';
     $this->assertTrue($result, $msg);
     $e = new \Exception('', 0);
     $this->expectOutputString('Hello World!');
     self::$handler->generateOutput($e);
 }