* * 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:----bqXaOtf1eUka/dHe+CwAZkz4+LUMG89OQuj3JvywfJVIUK8gtGuQ61s8m/vqeXFXbwcf8fLJg75yLlLoTFHXPzLS7qPBvrD7XXhRtgrx57+sjfHrhK/8gk7+GJykUmW0mg6b2iMy+FDKhTirnL+3J4z/A708kwuLgLp/2yYvvmAMKHd1kOQYVDbLS/91YQny++eV3ae+QXIOfTmPTFR15uImvV4T8degx8rk8mSxHxRw/TOfRQIrG/zrxg9g1mtxdYGz8rMbAH5MxUbDeIvZw/VelG1c6iADfDGJQKC8WCE9YbvjmnyU3JkP43mBkb0HwqCccnBBidVOEjsaQeMSm2/2YJKbDccY8b4DlNhqw7PRhXtu5ZdBegDJrqdbV4vc93rM8DlfjUo4t+Va8TB+qtg5dnbISoMzBmxSptH1voLqxLEAE6jk/v724rdk3T+pGOkWyKceBMeIZKaFaB9uzDffJr2DO5Dv59kX3qEPq4tWfojXRJmz4joKgIbSq15dpD9xVbtJlkVenZTlBvWmsTFpcVa+UhxN9AtfKlopA7MmtIz43jm0e3oP1LajOMcjvD6l9WOrEyqFtz4SmjACKT8bxjtUWo38B+DtPjgLEmlyjZJwyr8F3uv2TMZ1LE8VSjJ1ZHtOc8yKxrEKVZVtEGaoDY50vHYTeTCmj5uHqlM=----ATTACHMENT:----ODc2NDE5NjQ3Njk2MTc4NiAzODUzODEwNzQzODcwODYgODYxNTExMDIwNzQwMjg4