phpunit.xml.dist 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
  3. colors="true"
  4. bootstrap="tests/bootstrap.php"
  5. backupGlobals="true"
  6. cacheDirectory=".phpunit.cache">
  7. <testsuites>
  8. <testsuite name="cakephp">
  9. <directory>tests/TestCase/</directory>
  10. <!-- Excludes are required in order to let DatabaseSuite decorate the tests -->
  11. <exclude>tests/TestCase/Database/</exclude>
  12. <exclude>tests/TestCase/ORM/</exclude>
  13. <exclude>tests/TestCase/Collection/FunctionsGlobalTest.php</exclude>
  14. <exclude>tests/TestCase/Core/FunctionsGlobalTest.php</exclude>
  15. <exclude>tests/TestCase/Routing/FunctionsGlobalTest.php</exclude>
  16. </testsuite>
  17. <testsuite name="database">
  18. <directory>tests/TestCase/Database/</directory>
  19. <directory>tests/TestCase/ORM/</directory>
  20. </testsuite>
  21. <testsuite name="http-interop-http-factory">
  22. <directory>./vendor/http-interop/http-factory-tests/test</directory>
  23. </testsuite>
  24. <testsuite name="globalfunctions">
  25. <file>tests/TestCase/Collection/FunctionsGlobalTest.php</file>
  26. <file>tests/TestCase/Core/FunctionsGlobalTest.php</file>
  27. <file>tests/TestCase/Routing/FunctionsGlobalTest.php</file>
  28. </testsuite>
  29. </testsuites>
  30. <extensions>
  31. <bootstrap class="Cake\TestSuite\Fixture\Extension\PHPUnitExtension"/>
  32. </extensions>
  33. <source>
  34. <include>
  35. <directory suffix=".php">src/</directory>
  36. </include>
  37. </source>
  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. <!-- Enable query logging output for the testrun.
  45. <env name="LOG_QUERIES" value="1" />
  46. -->
  47. <!-- SQLite
  48. <env name="DB_URL" value="sqlite:///:memory:"/>
  49. -->
  50. <!-- Postgres
  51. <env name="DB_URL" value="postgres://localhost/cake_test?timezone=UTC"/>
  52. -->
  53. <!-- MySQL
  54. <env name="DB_URL" value="mysql://localhost/cake_test?timezone=UTC"/>
  55. -->
  56. <!-- SQL Server
  57. <env name="DB_URL" value="sqlserver://localhost/cake_test?timezone=UTC"/>
  58. -->
  59. <const name="PHPUNIT_TESTSUITE" value="true"/>
  60. <!-- Constants used by Http Interop's Http Factory tests -->
  61. <const name="REQUEST_FACTORY" value="Cake\Http\RequestFactory"/>
  62. <const name="RESPONSE_FACTORY" value="Cake\Http\ResponseFactory"/>
  63. <const name="SERVER_REQUEST_FACTORY" value="Cake\Http\ServerRequestFactory"/>
  64. <const name="STREAM_FACTORY" value="Cake\Http\StreamFactory"/>
  65. <const name="UPLOADED_FILE_FACTORY" value="Cake\Http\UploadedFileFactory"/>
  66. <const name="URI_FACTORY" value="Cake\Http\UriFactory"/>
  67. </php>
  68. </phpunit>