Switch check to to phive installed tools, fix in phpunit bootsrap file
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
base="/storage/var/www/html/developers/clemens/core_data/php_libraries/trunk/";
|
base="/storage/var/www/html/developers/clemens/core_data/php_libraries/trunk/";
|
||||||
# must be run in ${base}www/
|
# must be run in ${base}
|
||||||
$(cd "${base}"; phan --progress-bar -C --analyze-twice);
|
cd $base;
|
||||||
|
${base}tools/phan --progress-bar -C --analyze-twice;
|
||||||
|
cd ~;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
base="/storage/var/www/html/developers/clemens/core_data/php_libraries/trunk/";
|
base="/storage/var/www/html/developers/clemens/core_data/php_libraries/trunk/";
|
||||||
# must be run in ${base}www/
|
# must be run in ${base}
|
||||||
$(cd "${base}"; phpstan);
|
cd $base;
|
||||||
|
${base}tools/phpstan;
|
||||||
|
cd ~;
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ if [ ! -z "${2}" ] && [ -z "${php_bin}" ]; then
|
|||||||
fi;
|
fi;
|
||||||
|
|
||||||
# Note 4dev/tests/bootstrap.php has to be set as bootstrap file in phpunit.xml
|
# Note 4dev/tests/bootstrap.php has to be set as bootstrap file in phpunit.xml
|
||||||
phpunit_call="${php_bin}phpunit ${opt_testdox} -c ${base}phpunit.xml ${base}4dev/tests/";
|
phpunit_call="${php_bin}${base}tools/phpunit ${opt_testdox} -c ${base}phpunit.xml ${base}4dev/tests/";
|
||||||
|
|
||||||
${phpunit_call};
|
${phpunit_call};
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$set = 0;
|
$set = 0;
|
||||||
foreach (['/../..', '/..', '/../../www', '/../www'] as $src) {
|
foreach (['/../../www', '/../www', '/../..', '/..', '/../../src', '/../src'] as $src) {
|
||||||
if (is_file(dirname(__DIR__) . $src . '/vendor/autoload.php')) {
|
if (is_file(dirname(__DIR__) . $src . '/vendor/autoload.php')) {
|
||||||
require dirname(__DIR__) . $src . '/vendor/autoload.php';
|
require dirname(__DIR__) . $src . '/vendor/autoload.php';
|
||||||
$set = 1;
|
$set = 1;
|
||||||
|
|||||||
@@ -53,6 +53,6 @@ parameters:
|
|||||||
# paths:
|
# paths:
|
||||||
# - ...
|
# - ...
|
||||||
# - ...
|
# - ...
|
||||||
-
|
#-
|
||||||
message: "#^Call to deprecated method #"
|
# message: "#^Call to deprecated method #"
|
||||||
path: www/admin/class_test*.php
|
# path: www/admin/class_test*.php
|
||||||
|
|||||||
Reference in New Issue
Block a user