Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/Utils/CLITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ public function highlightParams()
return array(
array(
array('q' => 'SELECT 1'),
"\x1b[35mSELECT\n \x1b[92m1\x1b[0m\n",
"\e[35mSELECT\n \e[92m1\e[0m\n",
0,
),
array(
array('query' => 'SELECT 1'),
"\x1b[35mSELECT\n \x1b[92m1\x1b[0m\n",
"\e[35mSELECT\n \e[92m1\e[0m\n",
0,
),
array(
Expand Down
8 changes: 4 additions & 4 deletions tests/Utils/FormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,12 @@ public function formatQueries()
),
array(
'SELECT 1',
"\x1b[35mSELECT\n \x1b[92m1\x1b[0m",
"\e[35mSELECT\n \e[92m1\e[0m",
array('type' => 'cli'),
),
array(
'SELECT "Text" AS BAR',
"\x1b[35mSELECT\n \x1b[91m\"Text\" \x1b[35mAS \x1b[39mBAR\x1b[0m",
"\e[35mSELECT\n \e[91m\"Text\" \e[35mAS \e[39mBAR\e[0m",
array('type' => 'cli'),
),
array(
Expand Down Expand Up @@ -367,8 +367,8 @@ public function formatQueries()
array('type' => 'html'),
),
array(
"select 'text\x1b[33mcolor-inj' from tbl",
"\x1b[35mSELECT\n \x1b[91m'text\\x1B[33mcolor-inj'\n\x1b[35mFROM\n \x1b[39mtbl\x1b[0m",
"select 'text\e[33mcolor-inj' from tbl",
"\e[35mSELECT\n \e[91m'text\\x1B[33mcolor-inj'\n\e[35mFROM\n \e[39mtbl\e[0m",
array('type' => 'cli'),
),
);
Expand Down