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

testResolveWithLfiProtection() public method

Test
public testResolveWithLfiProtection ( ) : void
return void
    public function testResolveWithLfiProtection()
    {
        $this->object->setLfiProtection(true)->addPath(__DIR__ . '/_templates');
        $this->setExpectedException('Zend\\View\\Exception\\ExceptionInterface');
        $this->object->resolve('../one.phtml');
    }