MediaWiki  master
CSSMinTest Class Reference

ResourceLoader CSSMin. More...

Inheritance diagram for CSSMinTest:
Collaboration diagram for CSSMinTest:

Public Member Functions

 testBuildUrlValue ( $message, $input, $expectedOutput)
 This tests basic functionality of CSSMin::buildUrlValue. More...
 
 testGetLocalFileReferences ( $input, $expected)
 providesReferencedFiles CSSMin::getLocalFileReferences More...
 
 testGetMimeType ( $fileContents, $fileExtension, $expected)
 provideMimeType CSSMin::getMimeType More...
 
 testIsLocalUrl ( $expect, $url)
 provideIsLocalUrls CSSMin::isLocalUrl More...
 
 testIsRemoteUrl ( $expect, $url)
 provideIsRemoteUrl CSSMin::isRemoteUrl More...
 
 testMinify ( $code, $expectedOutput)
 provideMinifyCases CSSMin::minify More...
 
 testMinifyWithCSSStringValues ( $code, $expectedOutput)
 Separated because they are currently broken (T37492) More...
 
 testRemap ( $message, $params, $expectedOutput)
 This test tests funky parameters to CSSMin::remap. More...
 
 testRemapEmptyUrl ( $params, $expected)
 Cases with empty url() for CSSMin::remap. More...
 
 testRemapRemapping ( $message, $input, $expectedOutput)
 This tests the basic functionality of CSSMin::remap. More...
 
 testSerializeStringValue ( $input, $expected)
 provideSerializeStringValue CSSMin::serializeStringValue More...
 

Static Public Member Functions

static provideBuildUrlValueCases ()
 
static provideIsLocalUrls ()
 
static provideIsRemoteUrl ()
 
static provideMimeType ()
 
static provideMinifyCases ()
 
static provideRemapCases ()
 
static provideRemapEmptyUrl ()
 
static provideRemapRemappingCases ()
 
static provideSerializeStringValue ()
 
static providesReferencedFiles ()
 
static provideStringCases ()
 

Protected Member Functions

 setUp ()
 

Detailed Description

ResourceLoader CSSMin.

Definition at line 9 of file CSSMinTest.php.

Member Function Documentation

◆ provideBuildUrlValueCases()

static CSSMinTest::provideBuildUrlValueCases ( )
static

Definition at line 644 of file CSSMinTest.php.

◆ provideIsLocalUrls()

static CSSMinTest::provideIsLocalUrls ( )
static

Definition at line 245 of file CSSMinTest.php.

◆ provideIsRemoteUrl()

static CSSMinTest::provideIsRemoteUrl ( )
static

Definition at line 219 of file CSSMinTest.php.

◆ provideMimeType()

static CSSMinTest::provideMimeType ( )
static

Definition at line 95 of file CSSMinTest.php.

◆ provideMinifyCases()

static CSSMinTest::provideMinifyCases ( )
static

Definition at line 173 of file CSSMinTest.php.

◆ provideRemapCases()

static CSSMinTest::provideRemapCases ( )
static

Definition at line 285 of file CSSMinTest.php.

References false.

◆ provideRemapEmptyUrl()

static CSSMinTest::provideRemapEmptyUrl ( )
static

Definition at line 345 of file CSSMinTest.php.

References false.

◆ provideRemapRemappingCases()

static CSSMinTest::provideRemapRemappingCases ( )
static

Definition at line 381 of file CSSMinTest.php.

◆ provideSerializeStringValue()

static CSSMinTest::provideSerializeStringValue ( )
static

Definition at line 59 of file CSSMinTest.php.

◆ providesReferencedFiles()

static CSSMinTest::providesReferencedFiles ( )
static

Definition at line 35 of file CSSMinTest.php.

◆ provideStringCases()

static CSSMinTest::provideStringCases ( )
static

Definition at line 680 of file CSSMinTest.php.

◆ setUp()

CSSMinTest::setUp ( )
protected

Definition at line 11 of file CSSMinTest.php.

◆ testBuildUrlValue()

CSSMinTest::testBuildUrlValue (   $message,
  $input,
  $expectedOutput 
)

This tests basic functionality of CSSMin::buildUrlValue.

provideBuildUrlValueCases CSSMin::buildUrlValue

Definition at line 636 of file CSSMinTest.php.

References $input, and CSSMin\buildUrlValue().

◆ testGetLocalFileReferences()

CSSMinTest::testGetLocalFileReferences (   $input,
  $expected 
)

providesReferencedFiles CSSMin::getLocalFileReferences

Definition at line 26 of file CSSMinTest.php.

References $input, $output, and CSSMin\getLocalFileReferences().

◆ testGetMimeType()

CSSMinTest::testGetMimeType (   $fileContents,
  $fileExtension,
  $expected 
)

provideMimeType CSSMin::getMimeType

Definition at line 87 of file CSSMinTest.php.

References $file, TempFSFile\factory(), CSSMin\getMimeType(), and wfTempDir().

◆ testIsLocalUrl()

CSSMinTest::testIsLocalUrl (   $expect,
  $url 
)

provideIsLocalUrls CSSMin::isLocalUrl

Definition at line 261 of file CSSMinTest.php.

References class.

◆ testIsRemoteUrl()

CSSMinTest::testIsRemoteUrl (   $expect,
  $url 
)

provideIsRemoteUrl CSSMin::isRemoteUrl

Definition at line 240 of file CSSMinTest.php.

References class.

◆ testMinify()

CSSMinTest::testMinify (   $code,
  $expectedOutput 
)

provideMinifyCases CSSMin::minify

Definition at line 163 of file CSSMinTest.php.

References $code, and CSSMin\minify().

◆ testMinifyWithCSSStringValues()

CSSMinTest::testMinifyWithCSSStringValues (   $code,
  $expectedOutput 
)

Separated because they are currently broken (T37492)

Broken provideStringCases CSSMin::remap

Definition at line 676 of file CSSMinTest.php.

References $code.

◆ testRemap()

CSSMinTest::testRemap (   $message,
  $params,
  $expectedOutput 
)

This test tests funky parameters to CSSMin::remap.

See also
testRemapRemapping for testing of the basic functionality provideRemapCases CSSMin::remap CSSMin::remapOne

Definition at line 274 of file CSSMinTest.php.

References $params.

◆ testRemapEmptyUrl()

CSSMinTest::testRemapEmptyUrl (   $params,
  $expected 
)

Cases with empty url() for CSSMin::remap.

Regression test for T191237.

provideRemapEmptyUrl CSSMin

Definition at line 340 of file CSSMinTest.php.

References $params.

◆ testRemapRemapping()

CSSMinTest::testRemapRemapping (   $message,
  $input,
  $expectedOutput 
)

This tests the basic functionality of CSSMin::remap.

See also
testRemap for testing of funky parameters provideRemapRemappingCases CSSMin

Definition at line 373 of file CSSMinTest.php.

References $input, and CSSMin\remap().

◆ testSerializeStringValue()

CSSMinTest::testSerializeStringValue (   $input,
  $expected 
)

provideSerializeStringValue CSSMin::serializeStringValue

Definition at line 50 of file CSSMinTest.php.

References $input, $output, and CSSMin\serializeStringValue().


The documentation for this class was generated from the following file: