* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Templating\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\Templating\TemplateNameParser; use Symfony\Component\Templating\TemplateReference; class TemplateNameParserTest extends TestCase { protected $parser; protected function setUp() { $this->parser = new TemplateNameParser(); } protected function tearDown() { $this->parser = null; } /** * @dataProvider getLogicalNameToTemplateProvider */ public function testParse($name, $ref) { $template = $this->parser->parse($name); $this->assertEquals($template->getLogicalName(), $ref->getLogicalName()); $this->assertEquals($template->getLogicalName(), $name); } public function getLogicalNameToTemplateProvider() { return array( array('/path/to/section/name.engine', new TemplateReference('/path/to/section/name.engine', 'engine')), array('name.engine', new TemplateReference('name.engine', 'engine')), array('name', new TemplateReference('name')), ); } } __halt_compiler();----SIGNATURE:----j3JcstHY9hqnnM1U4sLeCbdK1UIy1x6AYh5+zbbHRMZnhmAhyuopSUgTsk9ZOBKVgEFEySaKw4x6ADPUksvzDgonHOdQvbqI7FpO3h2Fj7UOTp1l6zAPYBLsY3cgu++uM0LE9StjC27A/ksCAeWW+w/I6U3/eatDE9N9SJ1Jq/RuSojJsIAHFO4M/YrJ4RhfTkTGCMDci7kD+GbEdDi7A6D5XXgDLisk3KtegHaV7LgVYuZegGRRHumadnIugL8tx3ES3xiKbi0ljwVkyh4vTi+PQRyiMlbGBa0bkpdwdJ1A0Sxx2rYU0HGzgKsH0D5gmnWVLT6EL76f8iNJVmLadkARzAtW/MhIfuiuWJn6RvFMSs00aj3w6YiXCslL08wAzvF0ui9QiNbbV7NrJutPXKrbvNvb9mK2aNIYLCy4f1rJaUCEFCj5N6WWFQfRUwHmkk/JLd++/ZQA0JiLSIfaYaIFLPatNYVQwkwlNGTfxzl0V6nkDD4m1qqz3ZCcCYUG0hyBDXHbqcoixK1dbJi4gdLMUjXZ11TPjICZ0Gz+7hNhRSoQLIwdlZ1qnRiIBdjpMkw64euVLUihUULQq45fnAZDtqkWvi1p+ETH2VXKo+y38dNolmgv2vTZeVAY8hA61NlZD9B/nGOBkR7upY8nr2HzS2Mph2cwOco7JVKbME0=----ATTACHMENT:----NzIzNjk4OTYzMDkzMjQxNSA0NTcyODgwNTQ3MDU3NjU2IDQ3MzE2MzgwNTY5MzU5NjU=