Skip to content

Commit 1aa29ff

Browse files
committed
minor #11670 fixes missing "use" declaration for the ClockMock (chdeliens)
This PR was submitted for the 4.3 branch but it was merged into the 3.4 branch instead (closes #11670). Discussion ---------- fixes missing "use" declaration for the ClockMock so that one can reuse that example out of the box. may be wise to also patch older maintained branches to guarantee consistency in the docs. Commits ------- dce4934 fixes missing "use" declaration for the ClockMock
2 parents bc3107b + dce4934 commit 1aa29ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/phpunit_bridge.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ different class, do it explicitly using ``ClockMock::register(MyClass::class)``:
378378

379379
use App\MyClass;
380380
use PHPUnit\Framework\TestCase;
381+
use Symfony\Bridge\PhpUnit\ClockMock;
381382

382383
/**
383384
* @group time-sensitive

0 commit comments

Comments
 (0)