OSDN Git Service

fix unit tests
[php-libraries/Router.git] / phpunit.xml
index dd7047b..8e4a894 100644 (file)
@@ -1,10 +1,32 @@
-<phpunit
-    bootstrap="./vendor/autoload.php"
-    colors="true"
-    syntaxCheck="true">
-  <testsuites>
-    <testsuite name="router">
-      <directory>tests</directory>
-    </testsuite>
-  </testsuites>
+<?xml version="1.0" encoding="UTF-8"?>
+<phpunit backupGlobals="false"
+         backupStaticAttributes="false"
+         bootstrap="vendor/autoload.php"
+         colors="true"
+         convertErrorsToExceptions="true"
+         convertNoticesToExceptions="true"
+         convertWarningsToExceptions="true"
+         processIsolation="false"
+         stopOnFailure="false">
+    <testsuites>
+        <testsuite name="PHP Router">
+            <directory>tests</directory>
+        </testsuite>
+    </testsuites>
+
+    <filter>
+        <whitelist>
+            <directory>./</directory>
+            <exclude>
+                <directory>./tests/Fixtures</directory>
+                <directory>./vendor</directory>
+            </exclude>
+        </whitelist>
+    </filter>
+
+    <logging>
+        <log type="coverage-text" target="php://stdout" showUncoveredFiles="true"/>
+        <log type="coverage-clover" target="logs/clover.xml"/>
+    </logging>
+
 </phpunit>