From 2d8f2ecdc24339670d2cd3076030a71a2bf3ea07 Mon Sep 17 00:00:00 2001 From: Teoh Han Hui Date: Mon, 9 May 2016 14:50:17 +0800 Subject: [PATCH] Make ClockMock Tests\\ namespace matching less specific --- components/phpunit_bridge.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index ae5e7b4da33..5d46208f758 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -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