Sfoglia il codice sorgente

[WebBundle] added support in application skeleton for PHPUnit

Fabien Potencier 15 anni fa
parent
commit
79b8661439

+ 30 - 0
src/Symfony/Framework/WebBundle/Resources/skeleton/application/xml/phpunit.xml

@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<phpunit backupGlobals="false"
+         backupStaticAttributes="false"
+         colors="false"
+         convertErrorsToExceptions="true"
+         convertNoticesToExceptions="true"
+         convertWarningsToExceptions="true"
+         processIsolation="true"
+         stopOnFailure="false"
+         syntaxCheck="false"
+         bootstrap="../src/autoload.php"
+>
+  <testsuites>
+    <testsuite name="Project Test Suite">
+      <directory>../src/Application</directory>
+      <directory>../src/Bundle</directory>
+    </testsuite>
+  </testsuites>
+
+  <filter>
+    <whitelist>
+      <directory>../src/Application</directory>
+      <exclude>
+        <directory>../src/Application/*/Resources</directory>
+        <directory>../src/Application/*/Tests</directory>
+      </exclude>
+    </whitelist>
+  </filter>
+</phpunit>