phpunit.xml.dist 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
  3. <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
  5. backupGlobals="false"
  6. colors="true"
  7. bootstrap="tests/bootstrap.php"
  8. stopOnFailure="true"
  9. stopOnError="true"
  10. cacheResult="true"
  11. cacheResultFile=".phpunit_cache"
  12. executionOrder="defects">
  13. <coverage processUncoveredFiles="true">
  14. <include>
  15. <directory suffix=".php">src</directory>
  16. </include>
  17. <exclude>
  18. <directory>src/Util/Exception</directory>
  19. <directory>src/Routes</directory>
  20. <directory>src/DataFixtures</directory> <!-- This is where the test data is loaded, it get's tested enough, me thinks -->
  21. <directory>src/Security</directory> <!-- TODO: Should be tested in the future -->
  22. <file>src/Kernel.php</file>
  23. <file>src/CacheKernel.php</file>
  24. </exclude>
  25. </coverage>
  26. <php>
  27. <ini name="error_reporting" value="-1"/>
  28. <server name="APP_ENV" value="test" force="true"/>
  29. <server name="SHELL_VERBOSITY" value="-1"/>
  30. <server name="SYMFONY_PHPUNIT_REMOVE" value=""/>
  31. <server name="SYMFONY_PHPUNIT_VERSION" value="9.5"/>
  32. </php>
  33. <testsuites>
  34. <testsuite name="Project Test Suite">
  35. <directory>tests</directory>
  36. </testsuite>
  37. </testsuites>
  38. <listeners>
  39. <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
  40. </listeners>
  41. </phpunit>