phpunit.xml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <phpunit backupGlobals="false"
  3. backupStaticAttributes="false"
  4. bootstrap="tests/mock.php"
  5. colors="true"
  6. convertErrorsToExceptions="true"
  7. convertNoticesToExceptions="true"
  8. convertWarningsToExceptions="true"
  9. processIsolation="false"
  10. stopOnFailure="false"
  11. syntaxCheck="false">
  12. <testsuites>
  13. <testsuite name="ThinkPHP Test Suite">
  14. <directory>./tests/thinkphp/</directory>
  15. </testsuite>
  16. </testsuites>
  17. <listeners>
  18. <listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener" />
  19. </listeners>
  20. <filter>
  21. <whitelist>
  22. <directory suffix=".php">./</directory>
  23. <exclude>
  24. <directory suffix=".php">tests</directory>
  25. <directory suffix=".php">vendor</directory>
  26. </exclude>
  27. </whitelist>
  28. </filter>
  29. <php>
  30. <env name="APP_ENV" value="testing"/>
  31. <env name="CACHE_DRIVER" value="array"/>
  32. <env name="SESSION_DRIVER" value="array"/>
  33. <env name="QUEUE_DRIVER" value="sync"/>
  34. </php>
  35. </phpunit>