functional-php/tests/bootstrap-no-ds.php
2026-10-27 22:19:33 +01:00

19 lines
427 B
PHP

<?php
/**
* Copyright 2026 Kacper Donat
*
* @author Kacper "Kadet" Donat <kacper@kadet.net>
*
* Full license available in separate LICENSE file
*/
$loader = require __DIR__.'/../vendor/autoload.php';
if (extension_loaded('ds')) {
echo "Skipping the no-php-ds suite: ext-ds is loaded.\n";
exit(0);
}
// Hide the php-ds polyfill, so the library runs as if php-ds was not installed.
$loader->setPsr4('Ds\\', []);