]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - phpunit.xml.dist
Merge pull request #4438 from wallabag/dependabot/composer/scheb/two-factor-bundle...
[github/wallabag/wallabag.git] / phpunit.xml.dist
index 5549b8a54612ebf7f464790477f5cd6dfa7a5d07..426a5e72064a980b86d9c18aa79fdb465615b3f3 100644 (file)
@@ -1,42 +1,37 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<phpunit backupGlobals="false"
-         backupStaticAttributes="false"
+<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd"
+         backupGlobals="false"
          colors="true"
-         convertErrorsToExceptions="true"
-         convertNoticesToExceptions="true"
-         convertWarningsToExceptions="true"
-         processIsolation="false"
-         stopOnFailure="false"
-         syntaxCheck="false"
-         bootstrap="app/bootstrap.php.cache"
-        >
+         bootstrap="vendor/autoload.php"
+>
 
     <testsuites>
         <testsuite name="wallabag Test Suite">
-            <directory>./src/Wallabag/*Bundle/Tests</directory>
+            <directory>tests</directory>
         </testsuite>
     </testsuites>
 
     <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" />
-        -->
+        <ini name="error_reporting" value="-1" />
+        <server name="KERNEL_CLASS" value="AppKernel" />
+        <env name="SYMFONY_DEPRECATIONS_HELPER" value="weak" />
     </php>
 
     <filter>
         <whitelist>
-            <directory>./src</directory>
+            <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>
+                <directory>vendor</directory>
+                <directory>src/Wallabag/*Bundle/Resources</directory>
+                <directory>src/Wallabag/*Bundle/Tests</directory>
+                <directory>src/Wallabag/*Bundle/DataFixtures</directory>
             </exclude>
         </whitelist>
     </filter>
+
+    <listeners>
+        <listener class="\DAMA\DoctrineTestBundle\PHPUnit\PHPUnitListener" />
+    </listeners>
 </phpunit>