Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2d8f2ec

Browse files
committed
Make ClockMock Tests\\ namespace matching less specific
1 parentafdd44f commit2d8f2ec

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-
classFQCN is ``App\Watch\DummyWatch``.
213+
classnamespace 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)

[8]ページ先頭

©2009-2025 Movatter.jp