phpunit.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * Laravel - A PHP Framework For Web Artisans
  4. *
  5. * @package Laravel
  6. * @version 2.2.0 (Beta 1)
  7. * @author Taylor Otwell <taylorotwell@gmail.com>
  8. * @link http://laravel.com
  9. */
  10. // --------------------------------------------------------------
  11. // Define the directory separator for the environment.
  12. // --------------------------------------------------------------
  13. define('DS', DIRECTORY_SEPARATOR);
  14. // --------------------------------------------------------------
  15. // Override the framework paths if testing Laravel.
  16. // --------------------------------------------------------------
  17. if (in_array('build.xml', $_SERVER['argv']))
  18. {
  19. define('APP_PATH', realpath('bundles/laravel-tests/application').DS);
  20. define('BUNDLE_PATH', realpath('bundles/laravel-tests/bundles').DS);
  21. define('STORAGE_PATH', realpath('bundles/laravel-tests/storage').DS);
  22. }
  23. // --------------------------------------------------------------
  24. // Set the core Laravel path constants.
  25. // --------------------------------------------------------------
  26. require 'paths.php';
  27. // --------------------------------------------------------------
  28. // Bootstrap the Laravel core.
  29. // --------------------------------------------------------------
  30. require SYS_PATH.'core.php';
  31. // --------------------------------------------------------------
  32. // Start the default bundle.
  33. // --------------------------------------------------------------
  34. Bundle::start(DEFAULT_BUNDLE);