aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2013-05-09 18:58:31 +0200
committerAndreas Fischer <bantu@phpbb.com>2013-05-09 19:21:40 +0200
commitf2f97dd5e06be645f830e0467737d9f23544d631 (patch)
treed3806ee36b10d651967d8d0834bf86674736aa35
parentb5b1e88915ae8ae220c62b0d27f514069c3c0249 (diff)
downloadforums-f2f97dd5e06be645f830e0467737d9f23544d631.tar
forums-f2f97dd5e06be645f830e0467737d9f23544d631.tar.gz
forums-f2f97dd5e06be645f830e0467737d9f23544d631.tar.bz2
forums-f2f97dd5e06be645f830e0467737d9f23544d631.tar.xz
forums-f2f97dd5e06be645f830e0467737d9f23544d631.zip
[ticket/11513] Update all CLI calls to phpunit to use vendor/bin.
PHPBB3-11513
-rw-r--r--build/build.xml6
-rwxr-xr-xgit-tools/merge.php6
-rw-r--r--tests/RUNNING_TESTS.txt4
3 files changed, 9 insertions, 7 deletions
diff --git a/build/build.xml b/build/build.xml
index f9574a3d4d..75affb0f2d 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -56,7 +56,8 @@
<target name="test" depends="clean,prepare,composer">
<exec dir="."
- command="phpunit --log-junit build/logs/phpunit.xml
+ command="phpBB/vendor/bin/phpunit
+ --log-junit build/logs/phpunit.xml
--coverage-clover build/logs/clover.xml
--coverage-html build/coverage"
passthru="true" />
@@ -64,7 +65,8 @@
<target name="test-slow" depends="clean,prepare,composer">
<exec dir="."
- command="phpunit --log-junit build/logs/phpunit.xml
+ command="phpBB/vendor/bin/phpunit
+ --log-junit build/logs/phpunit.xml
--configuration phpunit.xml.all
--group slow
--coverage-clover build/logs/clover-slow.xml
diff --git a/git-tools/merge.php b/git-tools/merge.php
index 034bd2032c..41a96c0890 100755
--- a/git-tools/merge.php
+++ b/git-tools/merge.php
@@ -78,12 +78,12 @@ function work($pull_id, $remote)
add_remote($pull_user, 'phpbb3');
run("git fetch $pull_user");
run("git merge --no-ff $pull_user/$pull_branch");
- run("phpunit");
+ run("phpBB/vendor/bin/phpunit");
run("git checkout develop");
run("git pull $remote develop");
run("git merge --no-ff develop-olympus");
- run("phpunit");
+ run("phpBB/vendor/bin/phpunit");
break;
case 'develop':
@@ -93,7 +93,7 @@ function work($pull_id, $remote)
add_remote($pull_user, 'phpbb3');
run("git fetch $pull_user");
run("git merge --no-ff $pull_user/$pull_branch");
- run("phpunit");
+ run("phpBB/vendor/bin/phpunit");
break;
default:
diff --git a/tests/RUNNING_TESTS.txt b/tests/RUNNING_TESTS.txt
index de9c751238..f33fa59dc2 100644
--- a/tests/RUNNING_TESTS.txt
+++ b/tests/RUNNING_TESTS.txt
@@ -95,7 +95,7 @@ Running
Once the prerequisites are installed, run the tests from the project root
directory (above phpBB):
- $ phpunit
+ $ phpBB/vendor/bin/phpunit
Slow tests
--------------
@@ -105,7 +105,7 @@ Thus these tests are in the `slow` group, which is excluded by default. You can
enable slow tests by copying the phpunit.xml.all file to phpunit.xml. If you
only want the slow tests, run:
- $ phpunit --group slow
+ $ phpBB/vendor/bin/phpunit --group slow
More Information
================