Composer\Test\Satis\WebBuilderTest::testTwigEnvironment PHP Метод

testTwigEnvironment() публичный Метод

public testTwigEnvironment ( )
    public function testTwigEnvironment()
    {
        $twig = new \Twig_Environment(new \Twig_Loader_Array([]));
        $this->webBuilder->setTwigEnvironment($twig);
        $reflection = new \ReflectionClass($this->webBuilder);
        $method = $reflection->getMethod('getTwigEnvironment');
        $method->setAccessible(true);
        $this->assertSame($twig, $method->invoke($this->webBuilder));
    }