Beispiel #1
0
<?php

/**
 * This bootstraps the project
 *
 * PHP version 5.4
 *
 * @category   PitchBlade
 * @author     Pieter Hordijk <*****@*****.**>
 * @copyright  Copyright (c) 2013 Pieter Hordijk
 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
 * @version    1.0.0
 */
namespace PitchBlade;

use PitchBlade\Core\Autoloader;
require_once __DIR__ . '/Core/Autoloader.php';
$autoloader = new Autoloader(__NAMESPACE__, dirname(__DIR__));
$autoloader->register();
require_once __DIR__ . '/Security/password_compat.php';
Beispiel #2
0
 /**
  * @covers PitchBlade\Core\Autoloader::__construct
  * @covers PitchBlade\Core\Autoloader::register
  * @covers PitchBlade\Core\Autoloader::load
  */
 public function testLoadUnknownClass()
 {
     $autoloader = new Autoloader('FakeProject', dirname(__DIR__) . '/../Mocks/Core\\\\/\\//');
     $this->assertTrue($autoloader->register());
     $this->assertFalse($autoloader->load('IDontExistClass'));
 }