Documentation

StripColorsTest extends TestCase
in package

FinalYes

Tests for the \PHP_CodeSniffer\Util\Common::stripColors() method.

Tags
covers

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
see
testStripColors()
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.

Tags
dataProvider

dataStripColors


        
On this page

Search results