jfx/ci-report

View on GitHub
phpunit.xml.dist

Summary

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

<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.1/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="vendor/autoload.php"
>
    <php>
        <ini name="error_reporting" value="-1" />
        <env name="KERNEL_CLASS" value="App\Kernel" />
        <env name="APP_ENV" value="test" />
        <env name="APP_DEBUG" value="1" />
        <env name="APP_SECRET" value="s$cretf0rt3st" />
        <env name="SHELL_VERBOSITY" value="-1" />
        <!-- define your env variables for the test env here -->
        <env name="LOG_PATH" value="%kernel.logs_dir%/%kernel.environment%.log"/>
        <env name="DATABASE_URL" value="mysql://root@127.0.0.1:3306/ci-report"/>
        <env name="MAILER_URL" value="null://localhost"/>
        <env name="MAILER_SENDER" value="ci-report.sender@example.com"/>
        <env name="WEB_HOST" value="http://127.0.0.1:8000"/>
    </php>

    <testsuites>
        <testsuite name="ci-report unit test suite">
            <directory>tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./src/</directory>
        </whitelist>
    </filter>

    <listeners>
        <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
    </listeners>
</phpunit>