Skip to content

Commit 1e79c1c

Browse files
committed
bug #6546 Make ClockMock Tests\\ namespace matching less specific (teohhanhui)
This PR was merged into the 2.8 branch. Discussion ---------- Make ClockMock Tests\\ namespace matching less specific | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.8+ | Fixed tickets | N/A Commits ------- 2d8f2ec Make ClockMock Tests\\ namespace matching less specific
2 parents 1479082 + 2d8f2ec commit 1e79c1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/phpunit_bridge.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,10 @@ Troubleshooting
210210
~~~~~~~~~~~~~~~
211211

212212
The ``@group time-sensitive`` works "by convention" and assumes that the
213-
namespace of the tested class can be obtained just by removing the ``\Tests\``
213+
namespace of the tested class can be obtained just by removing the ``Tests\``
214214
part from the test namespace. I.e. that if the your test case fully-qualified
215215
class name (FQCN) is ``App\Tests\Watch\DummyWatchTest``, it assumes the tested
216-
class FQCN is ``App\Watch\DummyWatch``.
216+
class namespace is ``App\Watch``.
217217

218218
If this convention doesn't work for your application, you can also configure
219219
the mocked namespaces in the ``phpunit.xml`` file, as done for example in the

0 commit comments

Comments
 (0)