]> 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 0e8cc8ebb72db8ada71009b111216f6901006d15..426a5e72064a980b86d9c18aa79fdb465615b3f3 100644 (file)
@@ -1,36 +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/autoload.php"
-        >
+         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/" />
+        <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>