Skip to content

Commit 23aed78

Browse files
committed
Minor tweak
1 parent 1caa328 commit 23aed78

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

service_container/service_subscribers_locators.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -726,8 +726,7 @@ and compose your services with them::
726726
Testing a Service Subscriber
727727
----------------------------
728728

729-
When you need to unit test a service subscriber, you can either create a fake
730-
``ServiceLocator``::
729+
To unit test a service subscriber, you can create a fake ``ServiceLocator``::
731730

732731
use Symfony\Component\DependencyInjection\ServiceLocator;
733732

@@ -758,7 +757,7 @@ When you need to unit test a service subscriber, you can either create a fake
758757
$serviceSubscriber = new MyService($container);
759758
// ...
760759

761-
Or mock it when using ``PHPUnit``::
760+
Another alternative is to mock it using ``PHPUnit``::
762761

763762
use Psr\Container\ContainerInterface;
764763

0 commit comments

Comments
 (0)