diff --git a/test/README b/test/README index 36d4b8c6d0a71e66c2c4d0f1a4266db699367191..6a1ca6b9dac7e26bdb7f24a9288b369f3d2f6c57 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 7a34674fe44eb47559e3e55acfac6a14c75c7ece..0000000000000000000000000000000000000000 --- a/test/phpunit.xml +++ /dev/null @@ -1,30 +0,0 @@ -<phpunit backupGlobals="false" - backupStaticAttributes="true" - bootstrap="/path/to/bootstrap.php" - colors="false" - convertErrorsToExceptions="true" - convertNoticesToExceptions="true" - convertWarningsToExceptions="true" - processIsolation="true" - stopOnFailure="true" - syntaxCheck="false" - testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"> -<filter> - <blacklist> - <directory suffix=".php">/path/to/files</directory> - <file>/path/to/file</file> - <exclude> - <directory suffix=".php">/path/to/files</directory> - <file>/path/to/file</file> - </exclude> - </blacklist> - <whitelist> - <directory suffix=".php">/path/to/files</directory> - <file>/path/to/file</file> - <exclude> - <directory suffix=".php">/path/to/files</directory> - <file>/path/to/file</file> - </exclude> - </whitelist> -</filter> -</phpunit> \ No newline at end of file diff --git a/test/phpunittestko.xml b/test/phpunittestko.xml new file mode 100644 index 0000000000000000000000000000000000000000..c01af5e011bacb3b390233a07ae2ae5fc33c4809 --- /dev/null +++ b/test/phpunittestko.xml @@ -0,0 +1,10 @@ +<phpunit> +<filter> + <blacklist> + <directory suffix=".php">../test/</directory> + </blacklist> + <whitelist> + <directory suffix=".php">../htdocs/</directory> + </whitelist> +</filter> +</phpunit> \ No newline at end of file diff --git a/test/phpunittestok.xml b/test/phpunittestok.xml new file mode 100644 index 0000000000000000000000000000000000000000..70978f915efddd1e624c9430e96b3b806157469a --- /dev/null +++ b/test/phpunittestok.xml @@ -0,0 +1,7 @@ +<phpunit> +<filter> + <blacklist> + <directory suffix=".php">../test/</directory> + </blacklist> +</filter> +</phpunit> \ No newline at end of file