/** * Tests the process method for replacing colors * * @return void * * @covers Joomla\Application\Cli\ColorProcessor::replaceColors * @since 1.0 */ public function testProcessReplace() { $this->assertThat($this->object->process('<fg=red>foo</fg=red>'), $this->equalTo('[31mfoo[0m')); }
/** * Tests the process method for replacing colors * * @return void * * @covers Joomla\Application\Cli\ColorProcessor::replaceColors * @since 1.0 */ public function testProcessReplace() { $check = $this->winOs ? 'foo' : '[31mfoo[0m'; $this->assertThat($this->object->process('<fg=red>foo</fg=red>'), $this->equalTo($check)); }