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
14 public function testGetProperties()
16 $twig = new Twig_Environment(new Twig_Loader_String(), array(
24 $output = $twig->render('{{ d1.date }}{{ d2.date }}', compact('d1', 'd2'));
26 // If it fails, PHP will crash.
27 $this->assertEquals($output, $d1->date
. $d2->date
);