tikiwiki/packages/tiki-pkg-mediaalchemyst/alchemy/mediavorus/tests/bootstrap.php

11 lines
440 B
PHP
Raw Permalink Normal View History

2023-11-20 21:52:04 +01:00
<?php
$loader = require __DIR__.'/../vendor/autoload.php';
$loader->add('MediaVorus', __DIR__ . '/src');
// PHPUnit 6 introduced a breaking change that
// removed PHPUnit_Framework_TestCase as a base class,
// and replaced it with \PHPUnit\Framework\TestCase
if (!class_exists('\PHPUnit_Framework_TestCase') && class_exists('\PHPUnit\Framework\TestCase')) {
class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase');
}