Fixing typo and exposing fixture manager parameter to webrunner.

This commit is contained in:
mark_story 2011-02-13 15:15:01 -05:00
parent 844c6315c1
commit 7f8c98d9de
2 changed files with 6 additions and 4 deletions

View file

@ -82,10 +82,10 @@ class CakeTestRunner extends PHPUnit_TextUI_TestRunner {
if (!isset($arguments['fixtureManager'])) {
return new CakeFixtureManager();
}
App::import('Lib', 'test_suite/' . Inflector::underscore($arguments['fixtureManagerΩ']));
App::import('Lib', 'test_suite/' . Inflector::underscore($arguments['fixtureManager']));
if (class_exists($arguments['fixtureManager'])) {
return new $arguments['fixtureManager'];
}
throw new Exception('No fixture manager found.');
throw new RuntimeException('No fixture manager found.');
}
}

View file

@ -36,7 +36,8 @@ class CakeTestSuiteDispatcher {
'output' => 'html',
'show' => 'groups',
'show_passes' => false,
'filter' => false
'filter' => false,
'fixture' => null
);
/**
* Baseurl for the request
@ -236,7 +237,8 @@ class CakeTestSuiteDispatcher {
$options = array(
'--filter', $this->params['filter'],
'--output', $this->params['output']
'--output', $this->params['output'],
'--fixture', $this->params['fixture']
);
restore_error_handler();