Skip to content

Commit a256fed

Browse files
committed
minor #7854 [PhpUnitBridge] use namespaced PHPUnit TestCase class (xabbuh)
This PR was merged into the 2.8 branch. Discussion ---------- [PhpUnitBridge] use namespaced PHPUnit TestCase class Commits ------- a22a973 use namespaced PHPUnit TestCase class
2 parents 7ec94fe + a22a973 commit a256fed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

components/phpunit_bridge.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,10 @@ Use Case
133133

134134
If you have this kind of time-related tests::
135135

136+
use PHPUnit\Framework\TestCase;
136137
use Symfony\Component\Stopwatch\Stopwatch;
137138

138-
class MyTest extends \PHPUnit_Framework_TestCase
139+
class MyTest extends TestCase
139140
{
140141
public function testSomething()
141142
{
@@ -188,12 +189,13 @@ following listener in your PHPUnit configuration:
188189
As a result, the following is guaranteed to work and is no longer a transient
189190
test::
190191

192+
use PHPUnit\Framework\TestCase;
191193
use Symfony\Component\Stopwatch\Stopwatch;
192194

193195
/**
194196
* @group time-sensitive
195197
*/
196-
class MyTest extends \PHPUnit_Framework_TestCase
198+
class MyTest extends TestCase
197199
{
198200
public function testSomething()
199201
{

0 commit comments

Comments
 (0)