AssetManagerTest\Service\AliasPathStackResolverTest::testGetAndSetOfLfiProtectionFlag PHP Method

testGetAndSetOfLfiProtectionFlag() public method

Test Get and Set of Lfi Protection Flag
    public function testGetAndSetOfLfiProtectionFlag()
    {
        $resolver = new AliasPathStackResolver(array('my/alias/' => __DIR__));
        $resolver->setLfiProtection(true);
        $returned = $resolver->isLfiProtectionOn();
        $this->assertTrue($returned);
        $resolver->setLfiProtection(false);
        $returned = $resolver->isLfiProtectionOn();
        $this->assertFalse($returned);
    }