phpunit.xml.dist 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
  3. <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.1/phpunit.xsd"
  5. backupGlobals="false"
  6. colors="true"
  7. bootstrap="vendor/autoload.php"
  8. >
  9. <php>
  10. <ini name="error_reporting" value="-1" />
  11. <env name="KERNEL_CLASS" value="App\Kernel" />
  12. <env name="APP_ENV" value="test" />
  13. <env name="APP_DEBUG" value="1" />
  14. <env name="APP_SECRET" value="s$cretf0rt3st" />
  15. <env name="SHELL_VERBOSITY" value="-1" />
  16. <!-- define your env variables for the test env here -->
  17. <!-- ###+ doctrine/doctrine-bundle ### -->
  18. <!-- Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url -->
  19. <!-- For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db" -->
  20. <!-- Configure your db driver and server_version in config/packages/doctrine.yaml -->
  21. <env name="DATABASE_URL" value="mysql://db_user:db_password@127.0.0.1:3306/db_name"/>
  22. <!-- ###- doctrine/doctrine-bundle ### -->
  23. </php>
  24. <testsuites>
  25. <testsuite name="Project Test Suite">
  26. <directory>tests/</directory>
  27. </testsuite>
  28. </testsuites>
  29. <filter>
  30. <whitelist>
  31. <directory>./src/</directory>
  32. </whitelist>
  33. </filter>
  34. </phpunit>