public function testRender() { $file = __DIR__ . '/dummy.php'; $h = fopen($file, 'w+'); fwrite($h, '<?php echo $foo; ?>'); fclose($h); $c = new Container(); $ctrl = new Controller($c); $html = $ctrl->render($file, array('foo' => 'bar')); $this->assertEquals('bar', $html); unlink($file); }