コード例 #1
0
ファイル: PhpEngineTest.php プロジェクト: artoodetoo/dirk
 /**
  * @covers R2\Templating\PhpEngine::fetch
  */
 public function testFetch()
 {
     $parentName = $this->template('The text is (<?= $this->block(\'content\') ?>).');
     $name = $this->template('<?php $this->extend(\'' . $parentName . '\'); ?>xxx');
     $result = $this->engine->fetch($name, []);
     $this->assertEquals('The text is (xxx).', $result);
 }