/** * Test setting and returning the pagination object */ public function testPagination() { SEO::init(); $obj = SEO::setPagination(100); $this->assertInstanceOf('SEOPagination', $obj); }
if (!defined('ROOT_PATH')) { define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR); } if (!defined('CONF_PATH')) { define('CONF_PATH', ROOT_PATH . 'conf' . DIRECTORY_SEPARATOR); } if (!defined('KERNEL_PATH')) { define('KERNEL_PATH', ROOT_PATH . 'kernel' . DIRECTORY_SEPARATOR); } if (!defined('LIBS_PATH')) { define('LIBS_PATH', KERNEL_PATH . 'libs' . DIRECTORY_SEPARATOR); } if (!defined('SITE_PATH')) { define('SITE_PATH', ROOT_PATH . 'site' . DIRECTORY_SEPARATOR); } if (!defined('CLASS_PATH')) { define('CLASS_PATH', SITE_PATH . 'class' . DIRECTORY_SEPARATOR); } if (!defined('TMPL_PATH')) { define('TMPL_PATH', ROOT_PATH . 'tmpl' . DIRECTORY_SEPARATOR); } if (!defined('UPLOAD_PATH')) { define('UPLOAD_PATH', ROOT_PATH . 'upload' . DIRECTORY_SEPARATOR); } $GLOBALS['debug'] = []; require_once KERNEL_PATH . 'assets.php'; require_once KERNEL_PATH . 'routing.php'; require_once KERNEL_PATH . 'seo.php'; Routing::init(); SEO::init();