Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- ! phpunit.xml
- !
- ! XML configuration file for the unit testing framework "PHPUnit".
- !
- ! See http://phpunit.de/manual/3.6/en/appendixes.configuration.html for an
- ! explanation of the XML configuration file.
- !
- ! This XML configuration file can be used as a skeleton for any PHP project.
- ! The options in this file are configured as "strict" as possible (e.g. PHP
- ! error reporting). Furthermore it utilizes all available tools for logging
- ! (e.g. PHP_CodeCoverage).
- !
- ! In contrast to the XML configuration file phpunit.xml.dist, this XML
- ! configuration file writes log messages to the standard output (STDOUT).
- ! Therefore this configuration file should be used in a development
- ! environment.
- !
- ! This program is free software: you can redistribute it and/or modify it under
- ! the terms of the GNU Lesser General Public License as published by the Free
- ! Software Foundation, either version 3 of the License, or (at your option) any
- ! later version.
- !
- ! This program is distributed in the hope that it will be useful, but WITHOUT
- ! ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- ! FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
- ! details.
- !
- ! You should have received a copy of the GNU Lesser General Public License
- ! along with this program. If not, see http://gnu.org/licenses/lgpl.txt.
- !
- ! Author: Florian Wolters <wolters.fl@gmail.com>
- ! Copyright: 2012 Florian Wolters
- ! License: http://gnu.org/licenses/lgpl.txt LGPL-3.0+
- ! Link: http://gist.github.com/3034294
- !-->
- <!--
- ! The attributes of the <phpunit> element can be used to configure PHPUnit's
- ! core functionality.
- !-->
- <phpunit backupGlobals="false"
- backupStaticAttributes="false"
- bootstrap="vendor/autoload.php"
- cacheTokens="true"
- colors="true"
- convertErrorsToExceptions="true"
- convertNoticesToExceptions="true"
- convertWarningsToExceptions="true"
- forceCoversAnnotation="true"
- mapTestClassNameToCoveredClassName="true"
- printerClass="PHPUnit_TextUI_ResultPrinter"
- processIsolation="false"
- stopOnError="false"
- stopOnFailure="false"
- stopOnIncomplete="false"
- stopOnSkipped="false"
- testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
- strict="true"
- verbose="false">
- <!--
- ! The <testsuites> element and its one or more <testsuite> children can be
- ! used to compose a test suite out of test suites and test cases.
- !-->
- <testsuites>
- <testsuite name="Unit Test Suite">
- <directory>src/tests</directory>
- </testsuite>
- </testsuites>
- <!--
- ! The <filter> element and its children can be used to configure the
- ! blacklist and whitelist for the code coverage reporting.
- !-->
- <filter>
- <blacklist>
- <directory suffix=".php">vendor</directory>
- <directory suffix=".php">src/tests</directory>
- </blacklist>
- <whitelist addUncoveredFilesFromWhitelist="true">
- <directory suffix=".php">src/bin</directory>
- <directory suffix=".php">src/php</directory>
- <exclude>
- <directory suffix="Enum.php">src/php</directory>
- <directory suffix="Exception.php">src/php</directory>
- <directory suffix="Interface.php">src/php</directory>
- </exclude>
- </whitelist>
- </filter>
- <!--
- ! The <logging> element and its <log> children can be used to configure the
- ! logging of the test execution.
- !-->
- <logging>
- <log type="coverage-text"
- target="php://stdout"
- showUncoveredFiles="true" />
- <log type="testdox-text" target="php://stdout" />
- </logging>
- <!--
- ! The <php> element and its children can be used to configure PHP settings,
- ! constants, and global variables. It can also be used to prepend the
- ! include_path.
- ! -->
- <php>
- <ini name="error_reporting" value="-1" />
- <ini name="display_errors" value="1" />
- <ini name="display_startup_errors" value="1" />
- <ini name="log_errors" value="On" />
- <ini name="log_errors_max_len" value="0" />
- <ini name="ignore_repeated_errors" value="0" />
- <ini name="ignore_repeated_source" value="0" />
- <ini name="report_memleaks" value="1" />
- <ini name="track_errors" value="1" />
- <ini name="html_errors" value="0" />
- <ini name="xmlrpc_errors" value="0" />
- <ini name="xmlrpc_error_number" value="0" />
- <ini name="docref_root" value=".php" />
- <ini name="error_prepend_string" value="" />
- <ini name="error_append_string" value="" />
- <ini name="memory_limit" value="1024M" />
- <ini name="short_open_tag" value="0" />
- </php>
- </phpunit>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement