Skip to content

Commit

Permalink
Merge pull request #8881 from kenjis/docs-update-runInSeparateProcess…
Browse files Browse the repository at this point in the history
…-notes

docs: update notes for `@runInSeparateProcess`
  • Loading branch information
kenjis authored May 10, 2024
2 parents 7365e09 + 2a51e70 commit 67d5d94
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions user_guide_src/source/testing/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,12 @@ Ensure that a header or cookie was actually emitted:

.. literalinclude:: overview/009.php

.. note:: the test case with this should be `run as a separate process
in PHPunit <https://docs.phpunit.de/en/9.6/annotations.html#runinseparateprocess>`_.
.. note:: The test case with this should be run as a separate process
(with `@runInSeparateProcess annotation`_ or `RunInSeparateProcess attribute`_)
in PHPUnit.

.. _@runInSeparateProcess annotation: https://docs.phpunit.de/en/10.5/annotations.html#runinseparateprocess
.. _RunInSeparateProcess attribute: https://docs.phpunit.de/en/10.5/attributes.html#runinseparateprocess

assertHeaderNotEmitted($header, $ignoreCase = false)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -174,8 +178,9 @@ Ensure that a header or cookie was not emitted:

.. literalinclude:: overview/010.php

.. note:: the test case with this should be `run as a separate process
in PHPunit <https://docs.phpunit.de/en/9.6/annotations.html#runinseparateprocess>`_.
.. note:: The test case with this should be run as a separate process
(with `@runInSeparateProcess annotation`_ or `RunInSeparateProcess attribute`_)
in PHPUnit.

assertCloseEnough($expected, $actual, $message = '', $tolerance = 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit 67d5d94

Please sign in to comment.