From e921149135caaa1838e707a2f9ffb3af653fdec1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 27 Apr 2010 00:06:29 +0000 Subject: [PATCH] New: Add phpunit tests --- test/README | 2 +- test/phpunit.xml | 30 ------------------------------ test/phpunittestko.xml | 10 ++++++++++ test/phpunittestok.xml | 7 +++++++ 4 files changed, 18 insertions(+), 31 deletions(-) delete mode 100644 test/phpunit.xml create mode 100644 test/phpunittestko.xml create mode 100644 test/phpunittestok.xml diff --git a/test/README b/test/README index 36d4b8c6d0a..6a1ca6b9dac 100644 --- a/test/README +++ b/test/README @@ -17,6 +17,6 @@ Run > phpunit TestFile.php If using Eclipse, select the test and click on menu "Run external tools and choose PHPUnit". * Generate a report of Unit tests code coverage: -Run > phpunit --coverage-html ./report MyTestSuite.php +Run > phpunit [--configuration ./phpunittestok.xml] --coverage-html ./report MyTestSuite.php Note that xdebug must be installed for this feature to work. diff --git a/test/phpunit.xml b/test/phpunit.xml deleted file mode 100644 index 7a34674fe44..00000000000 --- a/test/phpunit.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - /path/to/files - /path/to/file - - /path/to/files - /path/to/file - - - - /path/to/files - /path/to/file - - /path/to/files - /path/to/file - - - - \ No newline at end of file diff --git a/test/phpunittestko.xml b/test/phpunittestko.xml new file mode 100644 index 00000000000..c01af5e011b --- /dev/null +++ b/test/phpunittestko.xml @@ -0,0 +1,10 @@ + + + + ../test/ + + + ../htdocs/ + + + \ No newline at end of file diff --git a/test/phpunittestok.xml b/test/phpunittestok.xml new file mode 100644 index 00000000000..70978f915ef --- /dev/null +++ b/test/phpunittestok.xml @@ -0,0 +1,7 @@ + + + + ../test/ + + + \ No newline at end of file