ds-codigos-postales-ine-es/scripts/vendor/maximebf/consolekit/tests/bootstrap.php

15 lines
356 B
PHP
Raw Normal View History

2016-11-14 21:33:22 +01:00
<?php
set_include_path(implode(PATH_SEPARATOR, array(
__DIR__,
__DIR__ . '/../src',
get_include_path()
)));
spl_autoload_register(function($className) {
if (substr($className, 0, 10) === 'ConsoleKit') {
$filename = str_replace('\\', DIRECTORY_SEPARATOR, trim($className, '\\')) . '.php';
require_once $filename;
}
});