public function testTemplateWillDereferenceNestedArrays()
{
$view = array('a' => array('title' => 'this is an object', 'description' => 'one of its attributes is a list', 'list' => array(array('label' => 'listitem1'), array('label' => 'listitem2'))));
$test = $this->mustache->render('template-with-dereferencing', $view);
$expected = <<<EOT
<h1>this is an object</h1>
<p>one of its attributes is a list</p>
<ul>
<li>listitem1</li>
<li>listitem2</li>
</ul>
EOT;
$this->assertEquals($expected, $test);
}