Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Sep 12th, 2012  |  syntax: None  |  size: 4.85 KB  |  hits: 10  |  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.  ! phpunit.xml
  4.  !
  5.  ! XML configuration file for the unit testing framework "PHPUnit".
  6.  !
  7.  ! See http://phpunit.de/manual/3.6/en/appendixes.configuration.html for an
  8.  ! explanation of the XML configuration file.
  9.  !
  10.  ! This XML configuration file can be used as a skeleton for any PHP project.
  11.  ! The options in this file are configured as "strict" as possible (e.g. PHP
  12.  ! error reporting). Furthermore it utilizes all available tools for logging
  13.  ! (e.g. PHP_CodeCoverage).
  14.  !
  15.  ! In contrast to the XML configuration file phpunit.xml.dist, this XML
  16.  ! configuration file writes log messages to the standard output (STDOUT).
  17.  ! Therefore this configuration file should be used in a development
  18.  ! environment.
  19.  !
  20.  ! This program is free software: you can redistribute it and/or modify it under
  21.  ! the terms of the GNU Lesser General Public License as published by the Free
  22.  ! Software Foundation, either version 3 of the License, or (at your option) any
  23.  ! later version.
  24.  !
  25.  ! This program is distributed in the hope that it will be useful, but WITHOUT
  26.  ! ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  27.  ! FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  28.  ! details.
  29.  !
  30.  ! You should have received a copy of the GNU Lesser General Public License
  31.  ! along with this program. If not, see http://gnu.org/licenses/lgpl.txt.
  32.  !
  33.  ! Author:    Florian Wolters <wolters.fl@gmail.com>
  34.  ! Copyright: 2012 Florian Wolters
  35.  ! License:   http://gnu.org/licenses/lgpl.txt LGPL-3.0+
  36.  ! Link:      http://gist.github.com/3034294
  37.  !-->
  38.  
  39. <!--
  40.  ! The attributes of the <phpunit> element can be used to configure PHPUnit's
  41.  ! core functionality.
  42.  !-->
  43. <phpunit backupGlobals="false"
  44.          backupStaticAttributes="false"
  45.          bootstrap="vendor/autoload.php"
  46.          cacheTokens="true"
  47.          colors="true"
  48.          convertErrorsToExceptions="true"
  49.          convertNoticesToExceptions="true"
  50.          convertWarningsToExceptions="true"
  51.          forceCoversAnnotation="true"
  52.          mapTestClassNameToCoveredClassName="true"
  53.          printerClass="PHPUnit_TextUI_ResultPrinter"
  54.          processIsolation="false"
  55.          stopOnError="false"
  56.          stopOnFailure="false"
  57.          stopOnIncomplete="false"
  58.          stopOnSkipped="false"
  59.          testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
  60.          strict="true"
  61.          verbose="false">
  62.  
  63.     <!--
  64.      ! The <testsuites> element and its one or more <testsuite> children can be
  65.      ! used to compose a test suite out of test suites and test cases.
  66.      !-->
  67.     <testsuites>
  68.         <testsuite name="Unit Test Suite">
  69.             <directory>src/tests</directory>
  70.         </testsuite>
  71.     </testsuites>
  72.  
  73.     <!--
  74.      ! The <filter> element and its children can be used to configure the
  75.      ! blacklist and whitelist for the code coverage reporting.
  76.      !-->
  77.     <filter>
  78.         <blacklist>
  79.             <directory suffix=".php">vendor</directory>
  80.             <directory suffix=".php">src/tests</directory>
  81.         </blacklist>
  82.         <whitelist addUncoveredFilesFromWhitelist="true">
  83.             <directory suffix=".php">src/bin</directory>
  84.             <directory suffix=".php">src/php</directory>
  85.             <exclude>
  86.                 <directory suffix="Enum.php">src/php</directory>
  87.                 <directory suffix="Exception.php">src/php</directory>
  88.                 <directory suffix="Interface.php">src/php</directory>
  89.             </exclude>
  90.         </whitelist>
  91.     </filter>
  92.  
  93.     <!--
  94.      ! The <logging> element and its <log> children can be used to configure the
  95.      ! logging of the test execution.
  96.      !-->
  97.     <logging>
  98.         <log type="coverage-text"
  99.              target="php://stdout"
  100.              showUncoveredFiles="true" />
  101.         <log type="testdox-text" target="php://stdout" />
  102.     </logging>
  103.  
  104.     <!--
  105.      ! The <php> element and its children can be used to configure PHP settings,
  106.      ! constants, and global variables. It can also be used to prepend the
  107.      ! include_path.
  108.      ! -->
  109.     <php>
  110.         <ini name="error_reporting" value="-1" />
  111.         <ini name="display_errors" value="1" />
  112.         <ini name="display_startup_errors" value="1" />
  113.         <ini name="log_errors" value="On" />
  114.         <ini name="log_errors_max_len" value="0" />
  115.         <ini name="ignore_repeated_errors" value="0" />
  116.         <ini name="ignore_repeated_source" value="0" />
  117.         <ini name="report_memleaks" value="1" />
  118.         <ini name="track_errors" value="1" />
  119.         <ini name="html_errors" value="0" />
  120.         <ini name="xmlrpc_errors" value="0" />
  121.         <ini name="xmlrpc_error_number" value="0" />
  122.         <ini name="docref_root" value=".php" />
  123.         <ini name="error_prepend_string" value="" />
  124.         <ini name="error_append_string" value="" />
  125.         <ini name="memory_limit" value="1024M" />
  126.         <ini name="short_open_tag" value="0" />
  127.     </php>
  128.  
  129. </phpunit>