un-confuse phpunit
This commit is contained in:
parent
186ea55348
commit
1566ff7eaa
2 changed files with 8 additions and 8 deletions
|
@ -18,17 +18,17 @@ _sanitise_environment();
|
|||
|
||||
// load base files
|
||||
ctx_log_start("Opening files");
|
||||
$files = array_merge(
|
||||
$_shm_files = array_merge(
|
||||
zglob("core/*.php"),
|
||||
zglob("ext/{".ENABLED_EXTS."}/main.php")
|
||||
);
|
||||
foreach($files as $filename) {
|
||||
if(basename($filename)[0] != "_") {
|
||||
require_once $filename;
|
||||
foreach($_shm_files as $_shm_filename) {
|
||||
if(basename($_shm_filename)[0] != "_") {
|
||||
require_once $_shm_filename;
|
||||
}
|
||||
}
|
||||
unset($files);
|
||||
unset($filename);
|
||||
unset($_shm_files);
|
||||
unset($_shm_filename);
|
||||
ctx_log_endok();
|
||||
|
||||
// connect to the database
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#!/bin/sh
|
||||
php \
|
||||
-d extension.dir=/usr/lib/php/extensions/no-debug-non-zts-20121212/ \
|
||||
-d extension=xdebug.so \
|
||||
-d xdebug.profiler_output_dir=./data/prof/ \
|
||||
-d xdebug.profiler_enable=1 \
|
||||
./vendor/bin/phpunit \
|
||||
--config tests/phpunit.xml \
|
||||
--coverage-clover data/coverage.clover
|
||||
# -d extension.dir=/usr/local/Cellar/php71-xdebug/2.5.5/ \
|
||||
# -d extension=xdebug.so \
|
||||
|
|
Reference in a new issue