Remote Code Coverage ==================== Browser tests are executed on the different machine, than one, where the code coverage information is collected (and tests are executed). To solve that problem this library uses remote coverage collection. Following steps needs to be performed before using this feature: On Remote Server ^^^^^^^^^^^^^^^^ This is web-server, where website used in tests is located. #. Install the `Xdebug`_ PHP extension on the web-server #. Copy the ``library/aik099/PHPUnit/RemoteCoverage/RemoteCoverageTool.php`` file into the web-server's DocumentRoot directory. #. Include following code before your application bootstraps: .. code-block:: php setRemoteCoverageScriptUrl('http://host/'); How This Works ^^^^^^^^^^^^^^ #. each test sets a special cookie on the website under test #. when cookie is present, then the ``RemoteCoverageTool.php`` script collects coverage information and stores it on disk #. once test finishes, then the ``http://host/?rct_mode=output`` url is accessed on remote server, which in turn returns collected coverage information #. remote coverage information is then joined with coverage information collected locally on test machine .. _`Xdebug`: https://xdebug.org/