* file that was distributed with this source code.
*/
+use PHPUnit\Framework\TestCase;
+
/**
* Integration test helper.
*
* @author Fabien Potencier <fabien@symfony.com>
* @author Karma Dordrak <drak@zikula.org>
*/
-abstract class Twig_Test_IntegrationTestCase extends PHPUnit_Framework_TestCase
+abstract class Twig_Test_IntegrationTestCase extends TestCase
{
/**
* @return string
if (false !== $exception) {
list($class) = explode(':', $exception);
- $this->assertThat(null, new PHPUnit_Framework_Constraint_Exception($class));
+ $constraintClass = class_exists('PHPUnit\Framework\Constraint\Exception') ? 'PHPUnit\Framework\Constraint\Exception' : 'PHPUnit_Framework_Constraint_Exception';
+ $this->assertThat(null, new $constraintClass($class));
}
$expected = trim($match[3], "\n ");
return $templates;
}
}
+
+class_alias('Twig_Test_IntegrationTestCase', 'Twig\Test\IntegrationTestCase', false);