8000 [#8416] Minor tweaks · symfony/symfony-docs@80631e7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 80631e7

Browse files
committed
[#8416] Minor tweaks
1 parent f4b7922 commit 80631e7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

components/phpunit_bridge.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -454,10 +454,7 @@ If you have installed the bridge through Composer, you can run it by calling e.g
454454
Code coverage listener
455455
----------------------
456456

457-
Use case
458-
~~~~~~~~
459-
460-
By default the code coverage is computed with the following rule: if a line of
457+
By default, the code coverage is computed with the following rule: if a line of
461458
code is executed, then it is marked as covered. And the test which executes a
462459
line of code is therefore marked as "covering the line of code". This can be
463460
misleading.
@@ -503,7 +500,7 @@ Consider the following example::
503500

504501
The ``FooTest::test`` method executes every single line of code of both ``Foo``
505502
and ``Bar`` classes, but ``Bar`` is not truly tested. The ``CoverageListener``
506-
aims to fix this behavior by adding the appropriate ``@covers`` annotation on
503+
aims to fix this behavior by adding the appropriate `@covers`_ annotation on
507504
each test class.
508505

509506
If a test class already defines the ``@covers`` annotation, this listener does
@@ -530,7 +527,7 @@ Add the following configuration to the ``phpunit.xml.dist`` file
530527
</listeners>
531528
</phpunit>
532529
533-
If the logic followed to find the related code is too simple or doesn't work for
530+
If the logic used to find the related code is too simple or doesn't work for
534531
your application, you can use your own SUT (System Under Test) solver:
535532

536533
.. code-block:: xml
@@ -570,3 +567,4 @@ not find the SUT:
570567
.. _`@-silenced`: http://php.net/manual/en/language.operators.errorcontrol.php
571568
.. _`Travis CI`: https://travis-ci.org/
572569
.. _`test listener`: https://phpunit.de/manual/current/en/appendixes.configuration.html#appendixes.configuration.test-listeners
570+
.. _`@covers`: https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.covers

0 commit comments

Comments
 (0)
0