From a22a973fb13a77df96514d040e7a71f0caae00af Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 28 Apr 2017 15:04:55 +0200 Subject: [PATCH] use namespaced PHPUnit TestCase class --- components/phpunit_bridge.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index 41d71b776c6..b917f5ebbaf 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -133,9 +133,10 @@ Use Case If you have this kind of time-related tests:: + use PHPUnit\Framework\TestCase; use Symfony\Component\Stopwatch\Stopwatch; - class MyTest extends \PHPUnit_Framework_TestCase + class MyTest extends TestCase { public function testSomething() { @@ -188,12 +189,13 @@ following listener in your PHPUnit configuration: As a result, the following is guaranteed to work and is no longer a transient test:: + use PHPUnit\Framework\TestCase; use Symfony\Component\Stopwatch\Stopwatch; /** * @group time-sensitive */ - class MyTest extends \PHPUnit_Framework_TestCase + class MyTest extends TestCase { public function testSomething() {