Skip to content

Commit

Permalink
Add script for running PHPUnit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
convissor committed Jan 12, 2012
1 parent f032477 commit e01d5dd
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 6 deletions.
3 changes: 2 additions & 1 deletion bin/peart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ if [[ -z $1 || $1 == "-h" || $1 == "--help" || $1 == "help" ]] ; then
echo ""
echo "Note: uses error_reporting = E_ALL & ~E_STRICT & ~E_DEPRECATED"
echo ""
echo "See Also: phpcm, phpi, phprm, phpt, phpvs"
echo "See Also, re Unit Testing: phpt, phput"
echo "See Also: phpcm, phpi, phprm, phpvs"
echo ""
echo "This is part of the PHP Version Solution:"
echo "https://github.com/convissor/php_version_solution"
Expand Down
2 changes: 1 addition & 1 deletion bin/phpcm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Needs to be run from a trunk or branch subdirectory under PHPVS_SRC_PATH
($PHPVS_SRC_PATH). That and related environment
variables are defined in $PHPVS_LIB_PATH/phpvs.
See Also: peart, phpi, phprm, phpt, phpvs
See Also: peart, phpi, phprm, phpt, phput, phpvs
This is part of the PHP Version Solution:
https://github.com/convissor/php_version_solution
Expand Down
2 changes: 1 addition & 1 deletion bin/phpi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Usage: phpi <branch>
Installs the PHP binary compiled in your regular user account via 'phpcm'.
See Also: peart, phpcm, phprm, phpt, phpvs
See Also: peart, phpcm, phprm, phpt, phput, phpvs
This is part of the PHP Version Solution:
https://github.com/convissor/php_version_solution
Expand Down
2 changes: 1 addition & 1 deletion bin/phprm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ the 'php' executable to be removed.
NOTE: expects a standard GNU layout of PHP.
See Also: peart, phpcm, phpi, phpt, phpvs
See Also: peart, phpcm, phpi, phpt, phput, phpvs
This is part of the PHP Version Solution:
https://github.com/convissor/php_version_solution
Expand Down
3 changes: 2 additions & 1 deletion bin/phpt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ if [[ -z $1 || $1 == "-h" || $1 == "--help" || $1 == "help" ]] ; then
echo "Executes phpt unit tests using the version of PHP currently"
echo "selected by phpvs."
echo ""
echo "See Also: peart, phpcm, phpi, phprm, phpvs"
echo "See Also, re Unit Testing: peart, phput"
echo "See Also: phpcm, phpi, phprm, phpvs"
echo ""
echo "This is part of the PHP Version Solution:"
echo "https://github.com/convissor/php_version_solution"
Expand Down
20 changes: 20 additions & 0 deletions bin/phput
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#! /bin/bash

if [[ -z $1 || $1 == "-h" || $1 == "--help" || $1 == "help" ]] ; then
echo ""
echo "Usage: phput <path>"
echo ""
echo "Executes phpunit using your active version of PHP. Also sets"
echo "error_reporting to 22527 (E_ALL & ~E_STRICT & ~E_DEPRECATED)."
echo ""
echo "See Also, re Unit Testing: phpt, peart"
echo "See Also: phpcm, phpi, phprm, phpvs"
echo ""
echo "This is part of the PHP Version Solution:"
echo "https://github.com/convissor/php_version_solution"
echo ""
exit 1
fi

dir=`dirname $0`
$TEST_PHP_EXECUTABLE $dir/phpunit -d error_reporting=22527 "$@"
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ sudo chmod 644 $prefix/lib/phpvs/*

sudo cp -i bin/* $prefix/bin
sudo chmod 665 $prefix/bin/phpcm
sudo chmod 755 $prefix/bin/peart $prefix/bin/php[it]
sudo chmod 755 $prefix/bin/peart $prefix/bin/phput $prefix/bin/php[it]

0 comments on commit e01d5dd

Please sign in to comment.