AssetManagerTest\Service\AliasPathStackResolverTest::testGetAndSetOfLfiProtectionFlag PHP 메소드

testGetAndSetOfLfiProtectionFlag() 공개 메소드

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);
    }