php-7.4.27-mk1-mac/lib/php/pear/test/XML_Util/tests/AbstractUnitTests.php

18 lines
424 B
PHP

<?php
/*
* Allow for PHPUnit 4.* while XML_Util is still usable on PHP 5.4
*/
if (!class_exists('PHPUnit_Framework_TestCase')) {
class PHPUnit_Framework_TestCase extends \PHPUnit\Framework\TestCase {}
}
abstract class AbstractUnitTests extends \PHPUnit_Framework_TestCase
{
public function setUp()
{
// ensure the class is defined, and thus its constants are declared
new XML_Util();
}
}