/**
  * @expectedException \LogicException
  * @expectedExceptionMessage Template "template.php" cannot be streamed as the engine supporting it does not implement StreamingEngineInterface
  */
 public function testStreamRequiresStreamingEngine()
 {
     $engine = $this->getEngineMock('template.php', true);
     $engine->expects($this->never())->method('stream');
     $delegatingEngine = new DelegatingEngine(array($engine));
     $delegatingEngine->stream('template.php', array('foo' => 'bar'));
 }
示例#2
0
 /**
  * @expectedException \LogicException
  * @expectedExceptionMessage Template "template.php" cannot be streamed as the engine supporting it does not implement StreamingEngineInterface
  */
 public function testStreamRequiresStreamingEngine()
 {
     $delegatingEngine = new DelegatingEngine(array(new TestEngine()));
     $delegatingEngine->stream('template.php', array('foo' => 'bar'));
 }