You are here

public function Twig_Tests_TemplateTest::testDisplayBlocksAcceptTemplateOnlyAsBlocks in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/test/Twig/Tests/TemplateTest.php \Twig_Tests_TemplateTest::testDisplayBlocksAcceptTemplateOnlyAsBlocks()

@expectedException LogicException

File

vendor/twig/twig/test/Twig/Tests/TemplateTest.php, line 16

Class

Twig_Tests_TemplateTest

Code

public function testDisplayBlocksAcceptTemplateOnlyAsBlocks() {
  $template = $this
    ->getMockForAbstractClass('Twig_Template', array(), '', false);
  $template
    ->displayBlock('foo', array(), array(
    'foo' => array(
      new stdClass(),
      'foo',
    ),
  ));
}