phpunit.php 968 B

123456789101112131415161718192021222324252627282930
  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. // Override the application path if testing Laravel.
  12. // --------------------------------------------------------------
  13. foreach ($_SERVER['argv'] as $key => $argument)
  14. {
  15. if ($argument == 'laravel' and $_SERVER['argv'][$key - 1] == '--group')
  16. {
  17. define('APP_PATH', realpath('tests/laravel').DIRECTORY_SEPARATOR);
  18. }
  19. }
  20. // --------------------------------------------------------------
  21. // Set the core Laravel path constants.
  22. // --------------------------------------------------------------
  23. require 'paths.php';
  24. // --------------------------------------------------------------
  25. // Bootstrap the Laravel core.
  26. // --------------------------------------------------------------
  27. require SYS_PATH.'core.php';