#!/bin/bash
travisdir=$(dirname $(readlink /proc/$$/fd/255))
testdir="$travisdir/../tests"
testedcomponents=(`cat "$travisdir/tested-components"`)
result=0

for tested in "${testedcomponents[@]}"
    do
        echo "$tested:"
        phpunit -c $testdir/phpunit.xml $testdir/$tested
        result=$(($result || $?))
done

exit $result

#!/bin/bash
travisdir=$(dirname $(readlink /proc/$$/fd/255))
testdir="$travisdir/../tests"
testedcomponents=(`cat "$travisdir/tested-components"`)
result=0

for tested in "${testedcomponents[@]}"
    do
        echo "$tested:"
        phpunit -c $testdir/phpunit.xml --stderr $testdir/$tested
        result=$(($result || $?))
done

exit $result

--- 
+++ 
@@ -7,7 +7,7 @@
 for tested in "${testedcomponents[@]}"
     do
         echo "$tested:"
-        phpunit -c $testdir/phpunit.xml --stderr $testdir/$tested
+        phpunit -c $testdir/phpunit.xml $testdir/$tested
         result=$(($result || $?))
 done
 
Remove --stderr switch from Travis test runner

- Appears that it may not be necessary
