phpunit.xml.dist 1.4 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="unit"
  10. verbose="true"
  11. >
  12. <coverage includeUncoveredFiles="true">
  13. <include>
  14. <directory suffix=".php">src</directory>
  15. </include>
  16. <report>
  17. <html outputDirectory="./coverage" lowUpperBound="35" highLowerBound="70"/>
  18. <text outputFile="php://stdout" showUncoveredFiles="true" showOnlySummary="true"/>
  19. </report>
  20. </coverage>
  21. <php>
  22. <ini name="error_reporting" value="-1"/>
  23. <server name="APP_ENV" value="staging" force="true"/>
  24. <server name="SHELL_VERBOSITY" value="-1"/>
  25. <server name="SYMFONY_PHPUNIT_REMOVE" value=""/>
  26. <server name="SYMFONY_PHPUNIT_VERSION" value="9.4"/>
  27. <server name="KERNEL_CLASS" value="App\Kernel" />
  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>