Location: PHPKode > scripts > Ruler > bobthecow-Ruler/tests/bootstrap.php
<?php

require_once __DIR__ . '/../vendor/pimple/lib/Pimple.php';

spl_autoload_register(function($class)
{
    if (0 === strpos($class, 'Ruler\\Test\\')) {
        $file = __DIR__ . '/../tests/' . str_replace('\\', '/', $class) . '.php';
        if (file_exists($file)) {
            require_once $file;
            return true;
        }
    } elseif (0 === strpos($class, 'Ruler\\')) {
        $file = __DIR__ . '/../src/' . str_replace('\\', '/', $class) . '.php';
        if (file_exists($file)) {
            require_once $file;
            return true;
        }
    }
});
Return current item: Ruler