<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
         bootstrap="../../vendor/autoload.php"
         colors="true"
         processIsolation="false"
         stopOnFailure="false"
         cacheResult="false"
         cacheResultFile=".phpunit.result.cache"
         executionOrder="depends,defects"
         requireCoverageMetadata="true"
         beStrictAboutCoverageMetadata="true"
         beStrictAboutOutputDuringTests="true"
         convertDeprecationsToExceptions="true"
         failOnRisky="true"
         failOnWarning="true">
    <testsuites>
        <testsuite name="Patent Module Unit Tests">
            <directory>./Tests/Unit</directory>
        </testsuite>
        <testsuite name="Patent Module Feature Tests">
            <directory>./Tests/Feature</directory>
        </testsuite>
        <testsuite name="Patent Module Integration Tests">
            <directory>./Tests/Feature/PatentWorkflowIntegrationTest.php</directory>
        </testsuite>
        <testsuite name="Patent Module All Tests">
            <directory>./Tests</directory>
        </testsuite>
    </testsuites>
    <source>
        <include>
            <directory>./Entities</directory>
            <directory>./Services</directory>
            <directory>./Http/Controllers</directory>
        </include>
        <exclude>
            <directory>./Tests</directory>
            <directory>./Database</directory>
            <directory>./Resources</directory>
        </exclude>
    </source>
    <php>
        <env name="APP_ENV" value="testing"/>
        <env name="APP_KEY" value="base64:YourAppKeyHere"/>
        <env name="APP_DEBUG" value="true"/>
        <env name="APP_URL" value="http://localhost"/>
        <env name="DB_CONNECTION" value="testing"/>
        <env name="DB_DATABASE" value="aipt_testing"/>
        <env name="CACHE_DRIVER" value="array"/>
        <env name="SESSION_DRIVER" value="array"/>
        <env name="QUEUE_CONNECTION" value="sync"/>
        <env name="MAIL_MAILER" value="array"/>
        <env name="TELESCOPE_ENABLED" value="false"/>
    </php>
    <logging>
        <log type="coverage-html" target="build/coverage"/>
        <log type="coverage-clover" target="build/coverage.xml"/>
        <log type="coverage-text" target="build/coverage.txt"/>
        <log type="junit" target="build/junit.xml"/>
    </logging>
    <groups>
        <exclude>
            <group>slow</group>
            <group>integration</group>
        </exclude>
    </groups>
    <!-- TestListener removed to avoid compatibility issues -->
</phpunit>
