/**
  * @test
  */
 public function propertiesThatStartWithIsAreStillAccessedNormally()
 {
     $post = new Post();
     $post->setPrivate(true);
     $this->view->assignMultiple(array('post' => $post));
     $this->view->setTemplateSource('<f:if condition="{post.isprivate}">Private!</f:if>');
     $actual = $this->view->render();
     $this->assertSame('', $actual);
 }
 /**
  * @test
  */
 public function nonExistingIsMethodWillNotThrowError()
 {
     $post = new Post();
     $post->setPrivate(true);
     $this->view->assignMultiple(array('post' => $post));
     $this->view->setTemplateSource('<f:if condition="{post.isNonExisting}">Wrong!</f:if>');
     $actual = $this->view->render();
     $this->assertSame('', $actual);
 }
 /**
  * @test
  * @dataProvider exampleTemplates
  */
 public function templateIsEvaluatedCorrectly($source, $variables, $expected)
 {
     $httpRequest = Request::create(new Uri('http://localhost'));
     $actionRequest = new \TYPO3\Flow\Mvc\ActionRequest($httpRequest);
     $standaloneView = new StandaloneView($actionRequest, uniqid());
     $standaloneView->assignMultiple($variables);
     $standaloneView->setTemplateSource($source);
     $actual = $standaloneView->render();
     $this->assertSame($expected, $actual);
 }