/**
* Used to serve back the server-side code coverage results to phpunit-selenium
*
- * @copyright (C) 2007-2020 G. Giunta
+ * @copyright (C) 2007-2021 G. Giunta
* @license code licensed under the BSD License: see file license.txt
**/
// has to be the same value as used in server.php
$GLOBALS['PHPUNIT_COVERAGE_DATA_DIRECTORY'] = '/tmp/phpxmlrpc_coverage';
+if (!is_dir($GLOBALS['PHPUNIT_COVERAGE_DATA_DIRECTORY'])) {
+ mkdir($GLOBALS['PHPUNIT_COVERAGE_DATA_DIRECTORY']);
+}
+
chdir($GLOBALS['PHPUNIT_COVERAGE_DATA_DIRECTORY']);
include_once $coverageFile;