public function testStaticGenerateViewWithTemplateAndData() { file_put_contents('/tmp/templateOutput2.test', View\view::generate('index', null, array('title' => 'Hello', 'body' => 'World'))->render()); $this->assertFileEquals('/tmp/templateOutput2.test', $this->_expectedDir . 'templateOutput2'); }