/** * @covers \Nerd\Autoloader::register */ public function testAutoloaderRegister() { $this->assertTrue(Autoloader::register()); }
<?php /** * Do not edit this file. If you need to do any framework bootstrapping you should * do it in the bootstrap.php file that lives within the application directory. */ // Aliasing rules use Nerd\Autoloader; // Definitions define('DS', DIRECTORY_SEPARATOR); define('LIBRARY_PATH', dirname(__DIR__)); define('VENDOR_PATH', dirname(LIBRARY_PATH) . '/vendor'); define('DOCROOT', dirname(LIBRARY_PATH) . '/public'); /** * Get and register the Nerd autoloader. */ require LIBRARY_PATH . '/nerd/classes/autoloader.php'; Autoloader::register(); /** * Test for CLI, load either application or Geek bootstrap. */ if (PHP_SAPI === 'cli') { require LIBRARY_PATH . DS . 'geek/bootstrap.php'; } else { require LIBRARY_PATH . DS . 'application/bootstrap.php'; }
<?php /** * Do not edit this file. If you need to do any framework bootstrapping you should * do it in the bootstrap.php file that lives within the application directory. */ // Aliasing rules use Nerd\Autoloader; define('DS', DIRECTORY_SEPARATOR); define('LIBRARY_PATH', dirname(dirname(__DIR__))); define('VENDOR_PATH', dirname(LIBRARY_PATH) . DS . 'vendor'); define('DOCROOT', dirname(LIBRARY_PATH) . DS . 'public'); /** * Get and register the Nerd autoloader. */ require join(DS, [LIBRARY_PATH, 'nerd', 'classes', 'autoloader.php']); Autoloader::register(true);