]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - phpunit.xml.dist
Update bundle & stock file
[github/wallabag/wallabag.git] / phpunit.xml.dist
index cede1ceae275d95df9e206064dcfdd341b325a79..85fa964b84fb177b0a8e1cb7ca0824a3048962d2 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-    <phpunit backupGlobals="false"
+<phpunit backupGlobals="false"
          backupStaticAttributes="false"
          colors="true"
          convertErrorsToExceptions="true"
@@ -9,19 +9,34 @@
          processIsolation="false"
          stopOnFailure="false"
          syntaxCheck="false"
-         bootstrap="vendor/autoload.php"
-               >
+         bootstrap="app/autoload.php"
+        >
 
-       <testsuites>
-               <testsuite name="wallabag Test Suite">
-                       <directory>tests</directory>
-               </testsuite>
-       </testsuites>
+    <testsuites>
+        <testsuite name="wallabag Test Suite">
+            <directory>./src/Wallabag/*Bundle/Tests</directory>
+        </testsuite>
+    </testsuites>
 
-       <filter>
-               <whitelist>
-                       <directory>inc</directory>
-               </whitelist>
-       </filter>
+    <php>
+        <server name="KERNEL_DIR" value="./app/" />
+        <!--
+          Avoid tests to fail because of deprecated stuff
+          see: http://symfony.com/doc/current/cookbook/upgrade/major_version.html#deprecations-in-phpunit
 
+          <env name="SYMFONY_DEPRECATIONS_HELPER" value="weak" />
+        -->
+    </php>
+
+    <filter>
+        <whitelist>
+            <directory>./src</directory>
+            <exclude>
+                <directory>./vendor</directory>
+                <directory>./src/Wallabag/*Bundle/Resources</directory>
+                <directory>./src/Wallabag/*Bundle/Tests</directory>
+                <directory>./src/Wallabag/*Bundle/DataFixtures</directory>
+            </exclude>
+        </whitelist>
+    </filter>
 </phpunit>