phpunit.xml.dist 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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/PHPStan</directory>
  20. <directory>src/Routes</directory>
  21. <directory>src/DataFixtures</directory> <!-- This is where the test data is loaded, it get's tested enough, me thinks -->
  22. <directory>src/Security</directory> <!-- TODO: Should be tested in the future -->
  23. <file>src/Kernel.php</file>
  24. <file>src/CacheKernel.php</file>
  25. </exclude>
  26. </coverage>
  27. <php>
  28. <ini name="error_reporting" value="-1"/>
  29. <server name="APP_ENV" value="test" force="true"/>
  30. <server name="SHELL_VERBOSITY" value="-1"/>
  31. <server name="SYMFONY_PHPUNIT_REMOVE" value=""/>
  32. <server name="SYMFONY_PHPUNIT_VERSION" value="9.5"/>
  33. </php>
  34. <testsuites>
  35. <testsuite name="Project Test Suite">
  36. <directory>tests</directory>
  37. </testsuite>
  38. </testsuites>
  39. <listeners>
  40. <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
  41. </listeners>
  42. </phpunit>