You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/uid.rst
+4-7Lines changed: 4 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -437,13 +437,12 @@ MockUuidFactory
437
437
===============
438
438
439
439
.. versionadded:: 7.4
440
-
The :class:`Symfony\Component\Uid\Factory\MockUuidFactory` class was introduced in Symfony 7.4.
441
440
442
-
The :class:`Symfony\Component\Uid\Factory\MockUuidFactory` class allows you to control the UUIDs generated during your tests, making them predictable and reproducible.
441
+
The :class:`Symfony\\Component\\Uid\\Factory\\MockUuidFactory` class was introduced in Symfony 7.4.
443
442
444
-
Suppose you have a service that generates a UUID for each new user:
443
+
The :class:`Symfony\\Component\\Uid\\Factory\\MockUuidFactory` class allows you to control the UUIDs generated during your tests, making them predictable and reproducible.
445
444
446
-
.. code-block:: php
445
+
Suppose you have a service that generates a UUID for each new user::
447
446
448
447
use Symfony\Component\Uid\Factory\UuidFactory;
449
448
use Symfony\Component\Uid\Uuid;
@@ -458,9 +457,7 @@ Suppose you have a service that generates a UUID for each new user:
458
457
}
459
458
}
460
459
461
-
In your tests, you can use ``MockUuidFactory`` to inject predictable UUIDs and verify the expected behavior:
462
-
463
-
.. code-block:: php
460
+
In your tests, you can use ``MockUuidFactory`` to inject predictable UUIDs and verify the expected behavior::
464
461
465
462
use PHPUnit\Framework\TestCase;
466
463
use Symfony\Component\Uid\Factory\MockUuidFactory;
0 commit comments