1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-31 02:10:22 +02:00

Some consmetic changes

This commit is contained in:
Olivier Poitrey
2014-01-17 11:24:20 -08:00
parent f13900b7f1
commit 65caca2b78
2 changed files with 7 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ class BrowserConsoleHandlerTest extends TestCase
$handler->handle($this->getRecord(Logger::DEBUG, 'foo[bar]{color: red}'));
$expected = <<<EOF
(function(c){if (console && console.groupCollapsed) {
(function(c){if (c && c.groupCollapsed) {
c.log("%cfoo%cbar%c", "font-weight: normal", "color: red", "font-weight: normal");
}})(console);
EOF;
@@ -50,7 +50,7 @@ EOF;
$handler->handle($this->getRecord(Logger::DEBUG, '[foo]{macro: autolabel}'));
$expected = <<<EOF
(function(c){if (console && console.groupCollapsed) {
(function(c){if (c && c.groupCollapsed) {
c.log("%c%cfoo%c", "font-weight: normal", "background-color: blue; color: white; border-radius: 3px; padding: 0 2px 0 2px", "font-weight: normal");
c.log("%c%cbar%c", "font-weight: normal", "background-color: green; color: white; border-radius: 3px; padding: 0 2px 0 2px", "font-weight: normal");
c.log("%c%cfoo%c", "font-weight: normal", "background-color: blue; color: white; border-radius: 3px; padding: 0 2px 0 2px", "font-weight: normal");
@@ -68,7 +68,7 @@ EOF;
$handler->handle($this->getRecord(Logger::DEBUG, 'test', array('foo' => 'bar')));
$expected = <<<EOF
(function(c){if (console && console.groupCollapsed) {
(function(c){if (c && c.groupCollapsed) {
c.groupCollapsed("%ctest", "font-weight: normal");
c.log("%c%s", "font-weight: bold", "Context");
c.log("%s: %o", "foo", "bar");
@@ -93,7 +93,7 @@ EOF;
$handler2->handle($this->getRecord(Logger::DEBUG, 'test4'));
$expected = <<<EOF
(function(c){if (console && console.groupCollapsed) {
(function(c){if (c && c.groupCollapsed) {
c.log("%ctest1", "font-weight: normal");
c.log("%ctest2", "font-weight: normal");
c.log("%ctest3", "font-weight: normal");