/**
  * @covers \Nerd\Autoloader::register
  */
 public function testAutoloaderRegister()
 {
     $this->assertTrue(Autoloader::register());
 }
Exemple #2
0
<?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';
}
Exemple #3
0
<?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);