Skip to content

Commit

Permalink
Make ClockMock Tests\\ namespace matching less specific
Browse files Browse the repository at this point in the history
  • Loading branch information
teohhanhui committed May 9, 2016
1 parent afdd44f commit 2d8f2ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/phpunit_bridge.rst
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ Troubleshooting
~~~~~~~~~~~~~~~

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

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

0 comments on commit 2d8f2ec

Please sign in to comment.