<?xml version="1.0" encoding="UTF-8"?>

<!-- http://www.phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit
    backupGlobals               = "false"
    backupStaticAttributes      = "false"
    colors                      = "true"
    convertErrorsToExceptions   = "true"
    convertNoticesToExceptions  = "false"
    convertWarningsToExceptions = "false"
    processIsolation            = "false"
    stopOnFailure               = "true"
    syntaxCheck                 = "false"
    bootstrap                   = "vendor/autoload.php" 
    verbose                     = "false"
    debug                       = "false"    
    timeoutForLargeTests        = "120"  
>

    <testsuites>
        <testsuite name="Core">
            <directory>vendor/splash/phpcore/Tests/*</directory>
        </testsuite>
        <testsuite name="Local">
            <directory>src/Tests/*</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>src</directory>
            <directory>vendor/splash/phpcore</directory>
            <exclude>
                <directory>vendor</directory>
            </exclude>
        </whitelist>
    </filter>
    
    <logging>
        <log type="coverage-html" target="coverage" lowUpperBound="35" highLowerBound="70"/>
    </logging>    
    
    <php>
        <const  name="SPLASH_DEBUG" value="true" />
        <server name="HTTP_HOST"    value="localhost"/>
        <server name="REQUEST_URI"  value="/Wordpress/Wp-4.8/test/"/>
        <server name="SERVER_NAME"  value="http://localhost/Wordpress/Wp-4.8/wp-content/plugins/splash-connector"/>
    </php>
</phpunit>
