Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 28th, 2012  |  syntax: XML  |  size: 1.64 KB  |  views: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <!-- http://www.phpunit.de/manual/current/en/appendixes.configuration.html -->
  4. <phpunit
  5.    backupGlobals               = "false"
  6.    backupStaticAttributes      = "false"
  7.    colors                      = "true"
  8.    convertErrorsToExceptions   = "true"
  9.    convertNoticesToExceptions  = "true"
  10.    convertWarningsToExceptions = "true"
  11.    processIsolation            = "false"
  12.    stopOnFailure               = "false"
  13.    syntaxCheck                 = "false"
  14.    bootstrap                   = "bootstrap.php.cache" >
  15.  
  16.     <testsuites>
  17.         <testsuite name="Project Test Suite">
  18.             <directory>../src/*/*Bundle/Tests</directory>
  19.             <directory>../src/*/Bundle/*Bundle/Tests</directory>
  20.         </testsuite>
  21.     </testsuites>
  22.  
  23.     <!--
  24.    <php>
  25.        <server name="KERNEL_DIR" value="/path/to/your/app/" />
  26.    </php>
  27.    -->
  28.  
  29.     <!-- Define internal used constants -->
  30.     <php>
  31.         <const name="SYMFONY_ENV_SHORT" value="test" />
  32.         <const name="SYMFONY_APP" value="frontend" />
  33.     </php>
  34.  
  35.     <filter>
  36.         <whitelist>
  37.             <directory>../src</directory>
  38.             <exclude>
  39.                 <directory>../src/*/*Bundle/Resources</directory>
  40.                 <directory>../src/*/*Bundle/Tests</directory>
  41.                 <directory>../src/*/Bundle/*Bundle/Resources</directory>
  42.                 <directory>../src/*/Bundle/*Bundle/Tests</directory>
  43.                 <!-- Exclude Componentent from phpunit testing -->
  44.                 <directory>../src/Component</directory>
  45.  
  46.             </exclude>
  47.         </whitelist>
  48.     </filter>
  49.  
  50. </phpunit>
clone this paste RAW Paste Data