phpunit.xml.dist 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. >
  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="-1"/>
  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. </php>
  28. <testsuites>
  29. <testsuite name="unit">
  30. <directory>tests/Unit</directory>
  31. </testsuite>
  32. <testsuite name="application">
  33. <directory>tests/Application</directory>
  34. </testsuite>
  35. </testsuites>
  36. <listeners>
  37. <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
  38. </listeners>
  39. <logging>
  40. <junit outputFile="./coverage/junit-report.xml"/>
  41. </logging>
  42. </phpunit>