File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -133,9 +133,10 @@ Use Case
133
133
134
134
If you have this kind of time-related tests::
135
135
136
+ use PHPUnit\Framework\TestCase;
136
137
use Symfony\Component\Stopwatch\Stopwatch;
137
138
138
- class MyTest extends \PHPUnit_Framework_TestCase
139
+ class MyTest extends TestCase
139
140
{
140
141
public function testSomething()
141
142
{
@@ -188,12 +189,13 @@ following listener in your PHPUnit configuration:
188
189
As a result, the following is guaranteed to work and is no longer a transient
189
190
test::
190
191
192
+ use PHPUnit\Framework\TestCase;
191
193
use Symfony\Component\Stopwatch\Stopwatch;
192
194
193
195
/**
194
196
* @group time-sensitive
195
197
*/
196
- class MyTest extends \PHPUnit_Framework_TestCase
198
+ class MyTest extends TestCase
197
199
{
198
200
public function testSomething()
199
201
{
You can’t perform that action at this time.
0 commit comments