/var/www/vhosts/nabawater/vendor/codeception/base/tests/unit/Codeception/Util
Edit: /var/www/vhosts/nabawater/vendor/codeception/base/tests/unit/Codeception/Util/TemplateTest.php (1031B)
place('name', 'davert');
$this->assertEquals('hello, davert', $template->produce());
}
public function testTemplateCanHaveOtherPlaceholder()
{
$template = new Template("hello, %name%", '%', '%');
$template->place('name', 'davert');
$this->assertEquals('hello, davert', $template->produce());
}
public function testTemplateSupportsDotNotationForArrays()
{
$template = new Template("hello, {{user.data.name}}");
$template->place('user', ['data' => ['name' => 'davert']]);
$this->assertEquals('hello, davert', $template->produce());
}
public function testShouldSkipUnmatchedPlaceholder()
{
$template = new Template("hello, {{name}}");
$this->assertEquals('hello, {{name}}', $template->produce());
}
}