You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* Ensures compatibility with PHPUnit < 6.x
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (!class_exists('PHPUnit\Framework\Constraint\Constraint') && class_exists('PHPUnit_Framework_Constraint')) {
|
|
|
|
namespace PHPUnit\Framework\Constraint {
|
|
|
|
abstract class Constraint extends \PHPUnit_Framework_Constraint {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!class_exists('PHPUnit\Framework\TestCase') && class_exists('PHPUnit_Framework_TestCase')) {
|
|
|
|
namespace PHPUnit\Framework {
|
|
|
|
abstract class TestCase extends \PHPUnit_Framework_TestCase {}
|
|
|
|
}
|
|
|
|
}
|