public function testAbsolutePath() { $view = new View('/path/'); $this->assertEquals('/path/sub/path.php', $view->getAbsoluteTemplatePath('sub/path')); $this->assertEquals('/absolute/path.php', $view->getAbsoluteTemplatePath('/absolute/path')); $this->assertEquals('C:\\path\\sub\\test.php', $view->getAbsoluteTemplatePath('C:\\path\\sub\\test')); }