git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge upstream phpxmlrpc
[plcapi.git]
/
php
/
phpxmlrpc
/
tests
/
phpunit_coverage.php
diff --git
a/php/phpxmlrpc/tests/phpunit_coverage.php
b/php/phpxmlrpc/tests/phpunit_coverage.php
index
ae7b998
..
eafe0e8
100644
(file)
--- a/
php/phpxmlrpc/tests/phpunit_coverage.php
+++ b/
php/phpxmlrpc/tests/phpunit_coverage.php
@@
-2,7
+2,7
@@
/**
* Used to serve back the server-side code coverage results to phpunit-selenium
*
/**
* Used to serve back the server-side code coverage results to phpunit-selenium
*
- * @copyright (C) 2007-20
15
G. Giunta
+ * @copyright (C) 2007-20
21
G. Giunta
* @license code licensed under the BSD License: see file license.txt
**/
* @license code licensed under the BSD License: see file license.txt
**/
@@
-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';
// 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']);
chdir($GLOBALS['PHPUNIT_COVERAGE_DATA_DIRECTORY']);
-include_once $coverageFile;
\ No newline at end of file
+include_once $coverageFile;