improve solution to allow custom mapping of class names when wrapping them
[plcapi.git] / tests / phpunit_coverage.php
index 69d1258..37c05d9 100644 (file)
@@ -11,6 +11,10 @@ $coverageFile = realpath(__DIR__ . "/../vendor/phpunit/phpunit-selenium/PHPUnit/
 // 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;