Skip to content

Commit ac90ac8

Browse files
committed
Minor tweaks
1 parent 3dc74f6 commit ac90ac8

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

components/phpunit_bridge.rst

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -796,32 +796,30 @@ the corresponding tests are run. Depending on how your tests are constructed,
796796
this might be too late.
797797

798798
You can either:
799-
* Declare the namespaces of the tested classes in your ``phpunit.xml.dist``.
799+
800+
* Declare the namespaces of the tested classes in your ``phpunit.xml.dist``;
800801
* Register the namespaces at the end of the ``config/bootstrap.php`` file.
801802

802803
.. code-block:: xml
803804
804805
<!-- phpunit.xml.dist -->
805-
<phpunit
806-
bootstrap="config/bootstrap.php"
807-
>
808-
<!-- ... -->
809-
<listeners>
810-
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
811-
<arguments>
812-
<array>
813-
<element key="time-sensitive"><string>Acme\MyClassTest</string></element>
814-
</array>
815-
</arguments>
816-
</listener>
817-
</listeners>
818-
</phpunit>
806+
<!-- ... -->
807+
<listeners>
808+
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
809+
<arguments>
810+
<array>
811+
<element key="time-sensitive"><string>Acme\MyClassTest</string></element>
812+
</array>
813+
</arguments>
814+
</listener>
815+
</listeners>
819816
820-
.. code-block:: php
817+
::
821818

822-
<!-- config/bootstrap.php -->
819+
// config/bootstrap.php
823820
use Symfony\Bridge\PhpUnit\ClockMock;
824821
822+
// ...
825823
if ('test' === $_SERVER['APP_ENV']) {
826824
ClockMock::register('Acme\\MyClassTest\\');
827825
}

0 commit comments

Comments
 (0)