mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Making Debugger test case play nicely with TestSuites.
This commit is contained in:
parent
9df7268080
commit
7ac76f3e0b
1 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,7 @@ class DebuggerTest extends CakeTestCase {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function setUp() {
|
function setUp() {
|
||||||
|
parent::setup();
|
||||||
Configure::write('log', false);
|
Configure::write('log', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,6 +57,7 @@ class DebuggerTest extends CakeTestCase {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function tearDown() {
|
function tearDown() {
|
||||||
|
parent::teardown();
|
||||||
Configure::write('log', true);
|
Configure::write('log', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -148,6 +150,8 @@ class DebuggerTest extends CakeTestCase {
|
||||||
$this->assertPattern('/Undefined variable:\s+buzz/', $result[1]);
|
$this->assertPattern('/Undefined variable:\s+buzz/', $result[1]);
|
||||||
$this->assertPattern('/<a[^>]+>Code/', $result[1]);
|
$this->assertPattern('/<a[^>]+>Code/', $result[1]);
|
||||||
$this->assertPattern('/<a[^>]+>Context/', $result[2]);
|
$this->assertPattern('/<a[^>]+>Context/', $result[2]);
|
||||||
|
|
||||||
|
restore_error_handler();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue