コード例 #1
0
ファイル: ViewTests.php プロジェクト: rumblesan/Minimal-VC
 function testFileOutput()
 {
     $var = "blah blah";
     $html = 'test html here <?php echo $var?>';
     $args = array("var" => $var);
     $check = "test html here {$var}";
     $view = new TestView($this->view_name, $this->view_type, $this->view_dir, $args);
     ob_start();
     $output = $view->show_view();
     $output = ob_get_clean();
     $this->assertIdentical($check, $output);
 }