From 638c3123164034a3abcc05617845254c835c4ab1 Mon Sep 17 00:00:00 2001 From: Damian Dlugosz Date: Tue, 24 Jan 2017 01:02:11 +0100 Subject: [PATCH] Replace \x1b with \e --- tests/Utils/CLITest.php | 4 ++-- tests/Utils/FormatterTest.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Utils/CLITest.php b/tests/Utils/CLITest.php index 435a2c8dd..b499e8306 100644 --- a/tests/Utils/CLITest.php +++ b/tests/Utils/CLITest.php @@ -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( diff --git a/tests/Utils/FormatterTest.php b/tests/Utils/FormatterTest.php index f18dbb4c5..839f1c67c 100644 --- a/tests/Utils/FormatterTest.php +++ b/tests/Utils/FormatterTest.php @@ -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( @@ -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'), ), );