phpunit.xml.dist 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
  3. <phpunit
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
  6. backupGlobals="false"
  7. colors="true"
  8. bootstrap="tests/bootstrap.php"
  9. defaultTestSuite="application"
  10. >
  11. <coverage includeUncoveredFiles="true">
  12. <include>
  13. <directory suffix=".php">src</directory>
  14. </include>
  15. <report>
  16. <html outputDirectory="./coverage" lowUpperBound="35" highLowerBound="70"/>
  17. <text outputFile="php://stdout" showUncoveredFiles="true" showOnlySummary="true"/>
  18. </report>
  19. </coverage>
  20. <php>
  21. <ini name="error_reporting" value="E_ALL &amp; ~E_DEPRECATED &amp; ~E_USER_DEPRECATED"/>
  22. <server name="APP_ENV" value="staging" force="true"/>
  23. <server name="SHELL_VERBOSITY" value="-1"/>
  24. <server name="SYMFONY_PHPUNIT_REMOVE" value=""/>
  25. <server name="SYMFONY_PHPUNIT_VERSION" value="9.4"/>
  26. <server name="KERNEL_CLASS" value="App\Kernel" />
  27. <env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled" />
  28. </php>
  29. <testsuites>
  30. <testsuite name="unit">
  31. <directory>tests/Unit</directory>
  32. </testsuite>
  33. <testsuite name="application">
  34. <directory>tests/Application</directory>
  35. </testsuite>
  36. </testsuites>
  37. <listeners>
  38. <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
  39. </listeners>
  40. <logging>
  41. <junit outputFile="./coverage/junit-report.xml"/>
  42. </logging>
  43. </phpunit>