Browse Source

Minor - Fixing formatting and adding common silex phpunit settings

Julio Montoya 12 years ago
parent
commit
adeb04835c
1 changed files with 33 additions and 22 deletions
  1. 33 22
      tests/phpunit/phpunit.xml

+ 33 - 22
tests/phpunit/phpunit.xml

@@ -1,24 +1,35 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<phpunit bootstrap="autoload.php" backupGlobals="false"
-         backupStaticAttributes="false" strict="true" verbose="true">
-  <testsuites>
-    <testsuite name="Chamilo LMS classes">
-      <directory suffix="Test.class.php">../phpunit/classes</directory>
-      <directory suffix="Test.lib.php">../phpunit/classes</directory>
-    </testsuite>
-  </testsuites>
-  <logging>
-    <log type="coverage-clover" target="../logs/clover.xml"/>
-    <log type="coverage-html" target="../coverage" title="ChamiloTests"/>
-    <log type="junit" target="../logs/junit.xml" logIncompleteSkipped="false"/>
-  </logging>
-  <filter>
-    <whitelist addUncoveredFilesFromWhitelist="true">
-      <directory suffix=".php">../../main/inc</directory>
-      <exclude>
-        <!--file>autoload.inc.php</file-->
-        <!--file>global.inc.php</file-->
-      </exclude>
-    </whitelist>
-  </filter>
+<phpunit bootstrap="autoload.php"
+         backupGlobals="false"
+         backupStaticAttributes="false"
+         colors="true"
+         strict="true"
+         verbose="true"
+         convertErrorsToExceptions="true"
+         convertNoticesToExceptions="true"
+         convertWarningsToExceptions="true"
+         processIsolation="false"
+         stopOnFailure="false"
+         syntaxCheck="false"
+>
+    <testsuites>
+        <testsuite name="Chamilo LMS classes">
+            <directory suffix="Test.class.php">../phpunit/classes</directory>
+            <directory suffix="Test.lib.php">../phpunit/classes</directory>
+        </testsuite>
+    </testsuites>
+    <logging>
+        <log type="coverage-clover" target="../logs/clover.xml"/>
+        <log type="coverage-html" target="../coverage" title="ChamiloTests"/>
+        <log type="junit" target="../logs/junit.xml" logIncompleteSkipped="false"/>
+    </logging>
+    <filter>
+        <whitelist addUncoveredFilesFromWhitelist="true">
+            <directory suffix=".php">../../main/inc</directory>
+            <exclude>
+                <!--file>autoload.inc.php</file-->
+                <!--file>global.inc.php</file-->
+            </exclude>
+        </whitelist>
+    </filter>
 </phpunit>