mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
1c9808fdca
commit
f6e9b5b254
3 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
|
|
|
@ -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');
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue