From 7f8c98d9ded9fb86a37be261463a8e110877490c Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 13 Feb 2011 15:15:01 -0500 Subject: [PATCH] Fixing typo and exposing fixture manager parameter to webrunner. --- cake/tests/lib/cake_test_runner.php | 4 ++-- cake/tests/lib/cake_test_suite_dispatcher.php | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cake/tests/lib/cake_test_runner.php b/cake/tests/lib/cake_test_runner.php index 191d4aacf..0b0eaa07e 100644 --- a/cake/tests/lib/cake_test_runner.php +++ b/cake/tests/lib/cake_test_runner.php @@ -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.'); } } \ No newline at end of file diff --git a/cake/tests/lib/cake_test_suite_dispatcher.php b/cake/tests/lib/cake_test_suite_dispatcher.php index 978471e0b..cd52a1678 100644 --- a/cake/tests/lib/cake_test_suite_dispatcher.php +++ b/cake/tests/lib/cake_test_suite_dispatcher.php @@ -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();