Beispiel #1
0
 /**
  * @covers R2\Templating\Dirk::fetch
  */
 public function testFetch()
 {
     $parentName = $this->template('The text is `@yield(\'content\')`. ' . '@foreach([1,2,3] as $i)' . '{!! $i !!}' . '@endforeach');
     $name = $this->template("@extends('{$parentName}')-xxx-");
     $result = $this->engine->fetch($name, []);
     $this->assertEquals("The text is `-xxx-`. 123", $result);
 }