PageRenderTime 60ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/Group-I/jobeet/lib/vendor/symfony/lib/plugins/sfPropelPlugin/test/bin/prove.php

https://bitbucket.org/hosseinzolfi/db-lab-spring-2011/
PHP | 31 lines | 18 code | 6 blank | 7 comment | 1 complexity | 01b766ca25f5f989a0037d3890e7eb65 MD5 | raw file
Possible License(s): ISC, AGPL-3.0, LGPL-2.1, BSD-3-Clause, LGPL-3.0
  1. <?php
  2. /*
  3. * This file is part of the symfony package.
  4. * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. require_once dirname(__FILE__).'/../../../../../lib/vendor/lime/lime.php';
  10. require_once dirname(__FILE__).'/../../../../../lib/util/sfToolkit.class.php';
  11. require_once dirname(__FILE__).'/../../../../../lib/util/sfFinder.class.php';
  12. if ($files = glob(sfToolkit::getTmpDir().DIRECTORY_SEPARATOR.'/sf_autoload_unit_*'))
  13. {
  14. foreach ($files as $file)
  15. {
  16. unlink($file);
  17. }
  18. }
  19. $h = new lime_harness(new lime_output_color);
  20. $h->base_dir = realpath(dirname(__FILE__).'/..');
  21. $h->register(sfFinder::type('file')->prune('fixtures')->name('*Test.php')->in(array(
  22. $h->base_dir.'/unit',
  23. $h->base_dir.'/functional',
  24. )));
  25. exit($h->run() ? 0 : 1);