bootstrap.php 472B

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__.'/Monolog/TestCase.php';
  11. spl_autoload_register(function($class)
  12. {
  13. $file = __DIR__.'/../src/'.strtr($class, '\\', '/').'.php';
  14. if (file_exists($file)) {
  15. require $file;
  16. return true;
  17. }
  18. });