From 02bae95170a9ec4158bef2ffef4e0f5848202503 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Sun, 28 May 2017 16:16:50 -0500 Subject: [PATCH] Let's try a polyfill --- tests/LoremIpsumTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/LoremIpsumTest.php b/tests/LoremIpsumTest.php index e503bf4..7b794cd 100644 --- a/tests/LoremIpsumTest.php +++ b/tests/LoremIpsumTest.php @@ -2,6 +2,10 @@ require_once '../src/LoremIpsum.php'; +if (!class_exists('\PHPUnit_Framework_TestCase') && class_exists('\PHPUnit\Framework\TestCase')) { + class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase'); +} + class LoremIpsumTest extends PHPUnit_Framework_TestCase { private $lipsum;