File manager - Edit - /usr/local/prospamfilter/vendor/codeception/codeception/tests/unit/Codeception/Util/TemplateTest.php
Back
<?php namespace Codeception\Util; class TemplateTest extends \PHPUnit_Framework_TestCase { public function testTemplateCanPassValues() { $template = new Template("hello, {{name}}"); $template->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 testShouldSkipUnmatchedPlaceholder() { $template = new Template("hello, {{name}}"); $this->assertEquals('hello, {{name}}', $template->produce()); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings