Skip to content

Commit 2d8f2ec

Browse files
committed
Make ClockMock Tests\\ namespace matching less specific
1 parent afdd44f commit 2d8f2ec

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
@@ -207,10 +207,10 @@ Troubleshooting
207207
~~~~~~~~~~~~~~~
208208

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

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

0 commit comments

Comments
 (0)