From 2a51e70d0749bf17ecd9b34a1855ceff2ed7d73f Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 10 May 2024 10:58:49 +0900 Subject: [PATCH] docs: update notes for @runInSeparateProcess --- user_guide_src/source/testing/overview.rst | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/user_guide_src/source/testing/overview.rst b/user_guide_src/source/testing/overview.rst index 9bec721428d9..4052269c4ee4 100644 --- a/user_guide_src/source/testing/overview.rst +++ b/user_guide_src/source/testing/overview.rst @@ -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 `_. +.. 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) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -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 `_. +.. 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) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^