testing.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /*
  3. * The environment testing is reserved for PHPUnit testing. It has special
  4. * conditions built into the framework at various places to assist with that.
  5. * You can’t use it for your development.
  6. */
  7. /*
  8. |--------------------------------------------------------------------------
  9. | ERROR DISPLAY
  10. |--------------------------------------------------------------------------
  11. | In development, we want to show as many errors as possible to help
  12. | make sure they don't make it to production. And save us hours of
  13. | painful debugging.
  14. */
  15. error_reporting(E_ALL);
  16. ini_set('display_errors', '1');
  17. /*
  18. |--------------------------------------------------------------------------
  19. | DEBUG BACKTRACES
  20. |--------------------------------------------------------------------------
  21. | If true, this constant will tell the error screens to display debug
  22. | backtraces along with the other error information. If you would
  23. | prefer to not see this, set this value to false.
  24. */
  25. defined('SHOW_DEBUG_BACKTRACE') || define('SHOW_DEBUG_BACKTRACE', true);
  26. /*
  27. |--------------------------------------------------------------------------
  28. | DEBUG MODE
  29. |--------------------------------------------------------------------------
  30. | Debug mode is an experimental flag that can allow changes throughout
  31. | the system. It's not widely used currently, and may not survive
  32. | release of the framework.
  33. */
  34. defined('CI_DEBUG') || define('CI_DEBUG', true);