mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix broken tests
This commit is contained in:
parent
a3702fcf2b
commit
431e610317
2 changed files with 2 additions and 2 deletions
|
@ -149,7 +149,7 @@ class ExtractTaskTest extends CakeTestCase {
|
||||||
$this->assertRegExp($pattern, $result);
|
$this->assertRegExp($pattern, $result);
|
||||||
|
|
||||||
$pattern = '/\#: (\\\\|\/)extract\.ctp:14\n';
|
$pattern = '/\#: (\\\\|\/)extract\.ctp:14\n';
|
||||||
$pattern .= '\#: (\\\\|\/)home\.ctp:99\n';
|
$pattern .= '\#: (\\\\|\/)home\.ctp:100\n';
|
||||||
$pattern .= 'msgid "Editing this Page"\nmsgstr ""/';
|
$pattern .= 'msgid "Editing this Page"\nmsgstr ""/';
|
||||||
$this->assertRegExp($pattern, $result);
|
$this->assertRegExp($pattern, $result);
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ class DebuggerTest extends CakeTestCase {
|
||||||
$pattern = '/<code>.*?<span style\="color\: \#\d+">.*?<\?php/';
|
$pattern = '/<code>.*?<span style\="color\: \#\d+">.*?<\?php/';
|
||||||
$this->assertRegExp($pattern, $result[0]);
|
$this->assertRegExp($pattern, $result[0]);
|
||||||
|
|
||||||
$result = Debugger::excerpt(__FILE__, 10, 2);
|
$result = Debugger::excerpt(__FILE__, 11, 2);
|
||||||
$this->assertEquals(5, count($result));
|
$this->assertEquals(5, count($result));
|
||||||
|
|
||||||
$pattern = '/<span style\="color\: \#\d{6}">\*<\/span>/';
|
$pattern = '/<span style\="color\: \#\d{6}">\*<\/span>/';
|
||||||
|
|
Loading…
Reference in a new issue