mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing typo and exposing fixture manager parameter to webrunner.
This commit is contained in:
parent
844c6315c1
commit
7f8c98d9de
2 changed files with 6 additions and 4 deletions
|
@ -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.');
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue