phpunit.php 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. // --------------------------------------------------------------
  3. // Define the directory separator for the environment.
  4. // --------------------------------------------------------------
  5. define('DS', DIRECTORY_SEPARATOR);
  6. // --------------------------------------------------------------
  7. // Set the core Laravel path constants.
  8. // --------------------------------------------------------------
  9. require 'paths.php';
  10. // --------------------------------------------------------------
  11. // Override the application paths when testing the core.
  12. // --------------------------------------------------------------
  13. $path = path('base').'tests'.DS;
  14. set_path('app', $path.'application'.DS);
  15. set_path('bundle', $path.'bundles'.DS);
  16. set_path('storage', $path.'storage'.DS);
  17. // --------------------------------------------------------------
  18. // Bootstrap the Laravel core.
  19. // --------------------------------------------------------------
  20. require path('sys').'core.php';
  21. // --------------------------------------------------------------
  22. // Start the default bundle.
  23. // --------------------------------------------------------------
  24. Laravel\Bundle::start(DEFAULT_BUNDLE);