* * 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:----J3sFWe37m8YWMDa0n+3a4a2yQBx5DNuPjMcCE2z/o0659Mf9vahV0GIe/DH4eJ/0e/pRr45Yy0jg9pQcc2diiKH04F7zCtvrB0BhBtk28ocypRnL0JxWMBDZQY3oBmG8cy7/TaxVrXo95xgvh4f+iNCCS2FQj33F3O0atzQACaQvUaYA5YklyNHymsj8SdiDhOsegslqLZVMWn6UApmnjts+rjiXBYGVqfekOC+5Ip9am14iSLs9J3WvLVQIV4NNj2q/dy/7pYcFBOXf47yLBNBjLsiV0D9xYpDwZVdedcvXsAerM2H0eHlUj3eXNBcDPBX4hefNiHkGnk4+j7YboJV+skgUkWzuJoEEjnxLwjPyCxmj0GjFEra+Iz22QNOak1ZmQKpYhztBfWtnc59bSU3NPXijrxq00ICCCQObW4/CE67N+r/eIduaNS8gmqNfTmPM6n5rfz1YQUAD9ssSyenSK38BbHUGFyJ3s7UK1Jt34+rcb5IiVpLIkuM+W+gIkT1aPC0XbOvvCvQFdJDtpLwNeBBOp1wpWoIRCfjSAtV7SUBvxzhShH+DmLe62eOkAMGI44KMdPXdwEBI8qakPsYMs6qo5FvuxgKqUN0GhBEGQ1Z04UVB9yxmZCDmwRI735R5T03mbWpKjmCbaJXuNecp0/V8P5VzTSETUuIntXs=----ATTACHMENT:----NzY1MjA1OTU1MzEzODE3MiAxODg5NzYzNjI5MTEzMDEyIDk1MzYzNDA0MTk1ODI4NjI=