<?php include realpath(dirname(__FILE__) . '/../lib/AutoLoader.php'); AutoLoader::loadMap(); include '../ini.php'; CoreState::loadParams(); include 'InstallUtilities.php'; ?> <html> <head> <title>Debug Settings</title> <style type="text/css"> body { line-height: 1.5em; } </style> </head> <body> <?php include 'tabs.php'; ?> <div id="wrapper"> <h2>IT CORE Lane Installation: Debug Settings</h2> <b>Logs</b><br /> Default logs: <ul> <li><i>php-errors.log</i> contains PHP errors, warnings, notices, etc depending on error reporting settings for PHP installation.</li> <li><i>queries.log</i> lists failed queries</li> </ul> <div class="alert"><?php InstallUtilities::checkWritable('../log/php-errors.log');
public function testAutoLoader() { // get codepath where session var is not array CoreLocal::set('ClassLookup', false); AutoLoader::loadClass('LocalStorage'); $this->assertEquals(true, class_exists('LocalStorage', false)); AutoLoader::loadMap(); $class_map = CoreLocal::get('ClassLookup'); $this->assertInternalType('array', $class_map); $this->assertNotEmpty($class_map); /** Verify base classes and required libraries were properly discovered */ $required_classes = array('AutoLoader', 'Authenticate', 'PreParser', 'Parser', 'BasicCorePage', 'TenderModule', 'DisplayLib', 'ReceiptLib', 'Database', 'Kicker', 'SpecialUPC', 'SpecialDept', 'DiscountType', 'PriceMethod', 'LocalStorage', 'FooterBox', 'Plugin', 'PrintHandler'); foreach ($required_classes as $class) { $this->assertArrayHasKey($class, $class_map); $this->assertFileExists($class_map[$class]); } $mods = AutoLoader::listModules('Parser'); $this->assertInternalType('array', $mods); $this->assertNotEmpty($mods); foreach ($mods as $m) { $obj = new $m(); $this->assertInstanceOf('Parser', $obj); } $listable = array('DiscountType', 'FooterBox', 'Kicker', 'Parser', 'PreParser', 'PriceMethod', 'SpecialUPC', 'SpecialDept', 'TenderModule', 'TenderReport', 'DefaultReceiptDataFetch', 'DefaultReceiptFilter', 'DefaultReceiptSort', 'DefaultReceiptTag', 'DefaultReceiptSavings', 'ReceiptMessage', 'CustomerReceiptMessage', 'ProductSearch', 'DiscountModule', 'PrintHandler', 'TotalAction', 'VariableWeightReWrite', 'ItemNotFound'); foreach ($listable as $base_class) { $mods = AutoLoader::listModules($base_class); $this->assertInternalType('array', $mods); } }