<?php /** * Bootstrap the library * * PHP version 5.5 * * @category OpCacheGUI * @author Pieter Hordijk <*****@*****.**> * @copyright Copyright (c) 2013 Pieter Hordijk <https://github.com/PeeHaa> * @license http://www.opensource.org/licenses/mit-license.html MIT License * @version 1.0.0 */ namespace OpCacheGUI; use OpCacheGUI\Core\Autoloader; require_once __DIR__ . '/Core/Autoloader.php'; $autoloader = new Autoloader(__NAMESPACE__, dirname(__DIR__)); $autoloader->register();
/** * @covers OpCacheGUI\Core\Autoloader::__construct * @covers OpCacheGUI\Core\Autoloader::register * @covers OpCacheGUI\Core\Autoloader::load */ public function testLoadUnknownClass() { $autoloader = new Autoloader('FakeProject', dirname(__DIR__) . '/../Mocks/Core\\\\/\\//'); $this->assertTrue($autoloader->register()); $this->assertFalse($autoloader->load('IDontExistClass')); }