cii-text-analysis/vendor/vanderlee/php-sentence/tests/bootstrap.php
Jéremy Munsch f68d2ac333
premier poc
2026-02-11 08:24:04 +01:00

13 lines
No EOL
409 B
PHP

<?php
spl_autoload_register(function ($class) {
static $prefix = 'Vanderlee\\Sentence\\';
if (stripos($class, $prefix) === 0) {
$file = str_replace('\\', DIRECTORY_SEPARATOR,
dirname(__DIR__).'\\src\\'.str_ireplace($prefix, '', $class).'.php');
if (is_file($file)) {
/** @noinspection PhpIncludeInspection */
require_once $file;
}
}
});