Import testing bundle to laravel/tests directory.

This commit is contained in:
Franz Liedke
2012-07-13 00:14:03 +02:00
parent 1879e6575a
commit a7c211339a
78 changed files with 6335 additions and 12 deletions

View File

@@ -26,17 +26,7 @@ class Runner extends Task {
*/
public function core()
{
if ( ! is_dir(path('bundle').'laravel-tests'))
{
throw new \Exception("The bundle [laravel-tests] has not been installed!");
}
// When testing the Laravel core, we will just stub the path directly
// so the test bundle is not required to be registered in the bundle
// configuration, as it is kind of a unique bundle.
$this->stub(path('bundle').'laravel-tests/cases');
$path = path('bundle').'laravel-tests/';
$this->stub(path('sys').'tests/cases');
$this->test();
}
@@ -83,7 +73,7 @@ class Runner extends Task {
// fix the spaced directories problem when using the command line
// strings with spaces inside should be wrapped in quotes.
$path = escapeshellarg($path)
$path = escapeshellarg($path);
passthru('phpunit --configuration '.$path);