Add support for phpunit tests.

Integrated test-runner for phpunit which covers
test-execution and code-coverage measurement.

refs #4068, refs #4087
This commit is contained in:
Johannes Meyer 2013-05-31 13:47:15 +02:00
parent d5df734c77
commit 4a92879a5a
2 changed files with 27 additions and 0 deletions

22
test/php/phpunit.xml Normal file
View File

@ -0,0 +1,22 @@
<phpunit backupGlobals="true"
backupStaticAttributes="true"
colors="false"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
forceCoversAnnotation="false"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
strict="false"
verbose="false">
<logging>
<log type="coverage-clover" target="../../build/log/phpunit_coverage.xml"/>
<log type="junit" target="../../build/log/phpunit_results.xml" logIncompleteSkipped="true"/>
</logging>
</phpunit>

5
test/php/runtests.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
phpunit "$@" .
exit 0