1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Update PHPUnit configuration to follow best practices

This commit is contained in:
Sebastian Bergmann 2018-01-09 06:41:48 +01:00 committed by Matthew Brown
parent 2dbbf2fafe
commit bc2f4f0184

View File

@ -1,50 +1,36 @@
<phpunit <?xml version="1.0" encoding="UTF-8"?>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.5/phpunit.xsd" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/5.7/phpunit.xsd"
backupGlobals="true" bootstrap="vendor/autoload.php"
backupStaticAttributes="false" backupGlobals="false"
bootstrap="tests/bootstrap.php" beStrictAboutCoversAnnotation="true"
colors="false" beStrictAboutOutputDuringTests="true"
convertErrorsToExceptions="true" beStrictAboutTestsThatDoNotTestAnything="true"
convertNoticesToExceptions="true" beStrictAboutTodoAnnotatedTests="true"
convertWarningsToExceptions="true" verbose="true">
forceCoversAnnotation="false" <testsuite name="default">
mapTestClassNameToCoveredClassName="false"
printerClass="PHPUnit_TextUI_ResultPrinter"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
stopOnRisky="false"
testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
timeoutForSmallTests="1"
timeoutForMediumTests="10"
timeoutForLargeTests="60"
verbose="false">
<testsuites>
<testsuite name="Psalm suite">
<directory>tests</directory> <directory>tests</directory>
</testsuite> </testsuite>
</testsuites>
<logging>
<log type="coverage-html" target="./build/logs/phpunit-html/"/>
<log type="coverage-clover" target="./build/logs/clover.xml"/>
</logging>
<filter> <filter>
<whitelist processUncoveredFilesFromWhitelist="true"> <whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src/</directory> <directory suffix=".php">src</directory>
<exclude> <exclude>
<directory suffix=".php">./src/Psalm/Stubs/</directory> <directory suffix=".php">src/Psalm/Issue/</directory>
<file>./src/Psalm/CallMap.php</file> <directory suffix=".php">src/Psalm/Stubs/</directory>
<file>./src/psalm.php</file> <file>src/psalm.php</file>
<file>./src/psalter.php</file> <file>src/psalter.php</file>
<file>./src/Psalm/Provider/Cache/NoParserCacheProvider.php</file> <file>src/Psalm/CallMap.php</file>
<file>./src/Psalm/Provider/ParserCacheProvider.php</file> <file>src/Psalm/PropertyMap.php</file>
<file>./src/Psalm/PropertyMap.php</file> <file>src/Psalm/Provider/Cache/NoParserCacheProvider.php</file>
<directory suffix=".php">./src/Psalm/Issue/</directory> <file>src/Psalm/Provider/ParserCacheProvider.php</file>
</exclude> </exclude>
</whitelist> </whitelist>
</filter> </filter>
<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
<log type="coverage-html" target="build/logs/phpunit-html/"/>
</logging>
</phpunit> </phpunit>