StripColorsTest
extends TestCase
in package
FinalYes
Tests for the \PHP_CodeSniffer\Util\Common::stripColors() method.
Tags
Table of Contents
Methods
- dataStripColors() : array<string, array<string, string>>
- Data provider.
- testStripColors() : void
- Test stripping color codes from a text.
Methods
dataStripColors()
Data provider.
public
static dataStripColors() : array<string, array<string, string>>
Tags
Return values
array<string, array<string, string>>testStripColors()
Test stripping color codes from a text.
public
testStripColors(string $text, string $expected) : void
Parameters
- $text : string
-
The text provided.
- $expected : string
-
Expected function output.