mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Use simpler assertions.
This commit is contained in:
parent
7a4cabe5d3
commit
3919f93149
1 changed files with 7 additions and 7 deletions
|
@ -455,18 +455,18 @@ TEXT;
|
|||
|
||||
Debugger::log('cool');
|
||||
$result = file_get_contents(LOGS . 'debug.log');
|
||||
$this->assertRegExp('/DebuggerTest\:\:testLog/i', $result);
|
||||
$this->assertRegExp("/'cool'/", $result);
|
||||
$this->assertContains('DebuggerTest::testLog', $result);
|
||||
$this->assertContains("'cool'", $result);
|
||||
|
||||
unlink(LOGS . 'debug.log');
|
||||
|
||||
Debugger::log(array('whatever', 'here'));
|
||||
$result = file_get_contents(LOGS . 'debug.log');
|
||||
$this->assertRegExp('/DebuggerTest\:\:testLog/i', $result);
|
||||
$this->assertRegExp('/\[main\]/', $result);
|
||||
$this->assertRegExp('/array/', $result);
|
||||
$this->assertRegExp("/'whatever',/", $result);
|
||||
$this->assertRegExp("/'here'/", $result);
|
||||
$this->assertContains('DebuggerTest::testLog', $result);
|
||||
$this->assertContains('[main]', $result);
|
||||
$this->assertContains('array', $result);
|
||||
$this->assertContains("'whatever',", $result);
|
||||
$this->assertContains("'here'", $result);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue