4 * This file is part of Twig.
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 class Twig_Tests_NativeExtensionTest extends \PHPUnit\Framework\TestCase
17 public function testGetProperties()
19 $twig = new Twig_Environment(new Twig_Loader_Array(array('index' => '{{ d1.date }}{{ d2.date }}')), array(
22 'autoescape' => false,
27 $output = $twig->render('index', compact('d1', 'd2'));
29 // If it fails, PHP will crash.
30 $this->assertEquals($output, $d1->date.$d2->date);