phpunit.xml.dist 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <phpunit
  3. colors="true"
  4. bootstrap="tests/bootstrap.php"
  5. backupGlobals="true"
  6. convertDeprecationsToExceptions="true"
  7. >
  8. <testsuites>
  9. <testsuite name="cakephp">
  10. <directory>tests/TestCase/</directory>
  11. <!-- Excludes are required in order to let DatabaseSuite decorate the tests -->
  12. <exclude>tests/TestCase/Database/</exclude>
  13. <exclude>tests/TestCase/ORM/</exclude>
  14. </testsuite>
  15. <testsuite name="database">
  16. <directory>tests/TestCase/Database/</directory>
  17. <directory>tests/TestCase/ORM/</directory>
  18. </testsuite>
  19. </testsuites>
  20. <extensions>
  21. <extension class="Cake\TestSuite\Fixture\PHPUnitExtension"/>
  22. </extensions>
  23. <!-- Prevent coverage reports from looking in tests, vendors, config folders -->
  24. <filter>
  25. <whitelist>
  26. <directory suffix=".php">src/</directory>
  27. <exclude>
  28. <!--
  29. This file contains a few functions that cannot be tested
  30. as they contain die; or breakpoint functionality.
  31. -->
  32. <file>src/basics.php</file>
  33. <!-- This file is deprecated and unused -->
  34. <file>src/Core/ClassLoader.php</file>
  35. </exclude>
  36. </whitelist>
  37. </filter>
  38. <php>
  39. <ini name="memory_limit" value="-1"/>
  40. <!-- E_ALL & ~E_USER_DEPRECATED (16383)-->
  41. <!-- E_ALL (32767) -->
  42. <ini name="error_reporting" value="32767"/>
  43. <env name="FIXTURE_SCHEMA_METADATA" value="./tests/schema.php"/>
  44. <!-- SQLite
  45. <env name="DB_URL" value="sqlite:///:memory:"/>
  46. -->
  47. <!-- Postgres
  48. <env name="DB_URL" value="postgres://localhost/cake_test?timezone=UTC"/>
  49. -->
  50. <!-- MySQL
  51. <env name="DB_URL" value="mysql://localhost/cake_test?timezone=UTC"/>
  52. -->
  53. <!-- SQL Server
  54. <env name="DB_URL" value="sqlserver://localhost/cake_test?timezone=UTC"/>
  55. -->
  56. </php>
  57. </phpunit>