<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false"
         bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true"
         convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false"
         stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
    <coverage>
        <include>
            <directory suffix=".php">./src/*</directory>
        </include>
        <exclude>
            <directory suffix=".php">./assets</directory>
            <directory suffix=".php">./config</directory>
            <directory suffix=".php">./database</directory>
            <directory suffix=".php">./resources</directory>
            <directory suffix=".php">./routes</directory>
            <directory suffix=".php">./tests</directory>
        </exclude>
        <report>
            <html outputDirectory="coverage-report" lowUpperBound="50" highLowerBound="80"/>
            <text outputFile="php://stdout" showUncoveredFiles="false"/>
        </report>
    </coverage>
    <testsuites>
        <testsuite name="Feature Tests">
            <directory suffix="Test.php">./tests/Feature</directory>
        </testsuite>
        <testsuite name="Unit Tests">
            <directory suffix="Test.php">./tests/Unit</directory>
        </testsuite>
    </testsuites>
    <php>
        <server name="APP_ENV" value="testing"/>
        <server name="BCRYPT_ROUNDS" value="4"/>
        <server name="CACHE_DRIVER" value="array"/>
        <!-- <server name="DB_CONNECTION" value="sqlite"/> -->
        <!-- <server name="DB_DATABASE" value=":memory:"/> -->
        <server name="MAIL_MAILER" value="array"/>
        <server name="QUEUE_CONNECTION" value="sync"/>
        <server name="SESSION_DRIVER" value="array"/>
        <env name="MYSQL_DATABASE" value="ignite_core_dev"/>
        <env name="MYSQL_HOST" value="mysql"/>
        <env name="MYSQL_DATABASE" value="ignite_core_dev"/>
        <env name="MYSQL_USERNAME" value="homestead"/>
        <env name="MYSQL_PASSWORD" value="secret"/>
        <!-- Generate a key: gpg - -full-generate-key -->
        <!-- Or, you can use the one in for your dev/test environment tests/pgp-key.tar.gz -->
        <!-- For reference: https://start.1password.com/open/i?a=GZULADRXBZBKRCDLSU6O5DLWZA&v=m5hvyi7jjlywfkscea4sdzunee&i=xtpuqj6dpdu3dylassgpptk4t4&h=my.1password.com -->
        <env name="PGP_DECRYPTION_PASSPHRASE" value="my-password1"/>
        <env name="PGP_ENCRYPTION_RECIPIENT" value="it@brightspot.email"/>
    </php>
</phpunit>
