]> source.dussan.org Git - nextcloud-server.git/commitdiff
PHPUnit: Allow developers to use their own custom phpunit.xml file.
authorAndreas Fischer <bantu@owncloud.com>
Thu, 27 Jun 2013 14:31:31 +0000 (16:31 +0200)
committerAndreas Fischer <bantu@owncloud.com>
Thu, 27 Jun 2013 14:31:31 +0000 (16:31 +0200)
The order of precedence of configuration files for PHPUnit is:
 - phpunit.xml (allowing custom user defined configuration)
 - phpunit.xml.dist (configuration distributed with the software)

tests/phpunit.xml [deleted file]
tests/phpunit.xml.dist [new file with mode: 0644]

diff --git a/tests/phpunit.xml b/tests/phpunit.xml
deleted file mode 100644 (file)
index 25dfc64..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<phpunit bootstrap="bootstrap.php">
-       <testsuite name='ownCloud'>
-               <directory suffix='.php'>lib/</directory>
-               <file>apps.php</file>
-       </testsuite>
-       <!-- filters for code coverage -->
-       <filter>
-               <!-- whitelist processUncoveredFilesFromWhitelist="true" -->
-               <whitelist>
-                       <directory suffix=".php">..</directory>
-                       <exclude>
-                               <directory suffix=".php">../3rdparty</directory>
-                               <directory suffix=".php">../lib/MDB2</directory>
-                       </exclude>
-               </whitelist>
-       </filter>
-</phpunit>
diff --git a/tests/phpunit.xml.dist b/tests/phpunit.xml.dist
new file mode 100644 (file)
index 0000000..25dfc64
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<phpunit bootstrap="bootstrap.php">
+       <testsuite name='ownCloud'>
+               <directory suffix='.php'>lib/</directory>
+               <file>apps.php</file>
+       </testsuite>
+       <!-- filters for code coverage -->
+       <filter>
+               <!-- whitelist processUncoveredFilesFromWhitelist="true" -->
+               <whitelist>
+                       <directory suffix=".php">..</directory>
+                       <exclude>
+                               <directory suffix=".php">../3rdparty</directory>
+                               <directory suffix=".php">../lib/MDB2</directory>
+                       </exclude>
+               </whitelist>
+       </filter>
+</phpunit>