示例#1
0
 function test_binary_string_is_converted_back_to_original_string()
 {
     $string = 'x';
     $string_with_color = '%b' . $string;
     $colorized_string = "{$string}";
     // Ensure colorization is applied correctly
     $this->assertEquals(\cli\Colors::colorize($string_with_color, true), $colorized_string);
     // Ensure that the colorization is reverted
     $this->assertEquals(\cli\Colors::decolorize($colorized_string), $string);
 }