Removing TestManager from the group tests.

Fixing a failing case on the testsuite shell.
Fixing Debugger from stealing the error handler from PHPUnit.
This commit is contained in:
mark_story 2011-02-13 13:08:43 -05:00
parent 1c9808fdca
commit f6e9b5b254
3 changed files with 2 additions and 2 deletions

View file

@ -100,7 +100,7 @@ class TestSuiteShellTest extends CakeTestCase {
$this->Shell->expects($this->once())->method('run') $this->Shell->expects($this->once())->method('run')
->with( ->with(
array('app' => false, 'plugin' => null, 'output' => 'text', 'case' => 'basics'), array('app' => false, 'plugin' => null, 'core' => true, 'output' => 'text', 'case' => 'basics'),
array('--filter', 'myFilter', '--colors', '--verbose') array('--filter', 'myFilter', '--colors', '--verbose')
); );
$this->Shell->main(); $this->Shell->main();

View file

@ -34,7 +34,6 @@ class AllTestSuiteTest extends PHPUnit_Framework_TestSuite {
public static function suite() { public static function suite() {
$suite = new PHPUnit_Framework_TestSuite('All Test Suite classes tests'); $suite = new PHPUnit_Framework_TestSuite('All Test Suite classes tests');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'test_manager.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'cake_test_case.test.php'); $suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'cake_test_case.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'cake_test_fixture.test.php'); $suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'cake_test_fixture.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'html_coverage_report.test.php'); $suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'html_coverage_report.test.php');

View file

@ -238,6 +238,7 @@ class CakeTestSuiteDispatcher {
'--filter', $this->params['filter'], '--filter', $this->params['filter'],
'--output', $this->params['output'] '--output', $this->params['output']
); );
restore_error_handler();
try { try {
$command = new CakeTestSuiteCommand('CakeTestLoader', $commandArgs); $command = new CakeTestSuiteCommand('CakeTestLoader', $commandArgs);