예제 #1
0
    /**
     * @dataProvider validOptions
     */
    public function testAllowsPassingOptionsToConstructor($arg)
    {
        $arg['script_paths'] = $this->paths;
        $stack = new TemplatePathStack($arg);
        $this->assertFalse($stack->isLfiProtectionOn());

        $expected = (bool) ini_get('short_open_tag');
        $this->assertSame($expected, $stack->useStreamWrapper());

        $this->assertEquals(array_reverse($this->paths), $stack->getPaths()->toArray());
    }