Gc\View\Resolver\TemplatePathStackTest::testResolveWithPharProtocol PHP Method

testResolveWithPharProtocol() public method

Test
public testResolveWithPharProtocol ( ) : void
return void
    public function testResolveWithPharProtocol()
    {
        $path = 'phar://' . __DIR__ . DIRECTORY_SEPARATOR . '_templates' . DIRECTORY_SEPARATOR . 'view.phar' . DIRECTORY_SEPARATOR . 'start' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'views';
        $this->object->addPath($path);
        $markup = $this->object->resolve('foo' . DIRECTORY_SEPARATOR . 'hello.phtml');
        $this->assertEquals($path . DIRECTORY_SEPARATOR . 'foo' . DIRECTORY_SEPARATOR . 'hello.phtml', $markup);
    }