/** * @test * @author Bastian Waidelich <*****@*****.**> */ public function renderLoadsSpecifiedTemplateFileAndPassesSourceToTemplateParser() { $templatePathAndFilename = dirname(__FILE__) . '/Fixtures/StandaloneViewFixture.html'; $expectedResult = file_get_contents($templatePathAndFilename); $this->view->setTemplatePathAndFilename($templatePathAndFilename); $this->mockTemplateParser->expects($this->once())->method('parse')->with($expectedResult); $this->view->render(); }