public function testRouterNotHomeFolder() { $_REQUEST['__url'] = 'nothomefolder'; $this->ob(); Cana::app()->buildPages(); Cana::app()->displayPage(); $check = $this->ob(false); $this->assertEquals('NOTHOME-FOLDER', $check); }
<?php /** * HTTP entry point * * @author Devin Smith (www.devin-smith.com) * @date 2009.09.18 * * This uses a caffeine engine base so we can reuse it in the future * reguardless of what it is. * */ error_reporting(E_ALL ^ E_NOTICE); ini_set('display_errors', true); require_once './app.php'; Cana::app()->displayPage();