bootstrap.php 532 B

12345678910111213141516171819202122
  1. <?php
  2. /*
  3. * This file is part of the Monolog package.
  4. *
  5. * (c) Jordi Boggiano <j.boggiano@seld.be>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. require_once __DIR__ . "/../vendor/.composer/autoload.php";
  11. require_once __DIR__.'/Monolog/TestCase.php';
  12. spl_autoload_register(function($class)
  13. {
  14. $file = __DIR__.'/../src/'.strtr($class, '\\', '/').'.php';
  15. if (file_exists($file)) {
  16. require $file;
  17. return true;
  18. }
  19. });