[英]PHPUnit output text is messed up
I don't know if I should be asking this here since this is not entirely programming-related but please pardon me in advance. 我不知道我是否应该在这里问这个问题,因为这并不完全与编程有关,但是请您事先谅解。
How do I correct the highlighted text in the screenshot below? 如何纠正以下屏幕截图中突出显示的文本?
The "<-[" texts. “ <-[”文本。
Also, how do I run PHPUnit in Windows that will show show the usual green/red bar when passing/failing tests? 另外,如何在Windows中运行PHPUnit,在通过/失败测试时会显示通常的绿色/红色条形? I tried Git Bash console but it also displays messed up output and no bar.
我尝试了Git Bash控制台,但它也显示混乱的输出,没有任何条形。
You're looking at ANSI colour codes, which don't work in cmd.exe
. 您正在查看的ANSI颜色代码在
cmd.exe
不起作用。
The configuration file can be used to set the colors
directive to false
. 该配置文件可用于将
colors
伪指令设置为false
。 Alternatively, you should be able to use the --colors
command line option . 或者,您应该可以使用
--colors
命令行选项 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.