MediaWiki  master
JavaScriptMinifierTest Class Reference
Inheritance diagram for JavaScriptMinifierTest:
Collaboration diagram for JavaScriptMinifierTest:

Public Member Functions

 testLineBreaker ( $code, array $expectedLines)
 provideLineBreaker JavaScriptMinifier::minify More...
 
 testMinifyOutput ( $code, $expectedOutput, $expectedValid=true)
 provideCases JavaScriptMinifier::minify JavaScriptMinifier::parseError More...
 

Static Public Member Functions

static provideCases ()
 
static provideLineBreaker ()
 

Protected Member Functions

 tearDown ()
 

Private Member Functions

 setMaxLineLength ( $val)
 

Detailed Description

Definition at line 3 of file JavaScriptMinifierTest.php.

Member Function Documentation

◆ provideCases()

static JavaScriptMinifierTest::provideCases ( )
static

Definition at line 20 of file JavaScriptMinifierTest.php.

References false.

◆ provideLineBreaker()

static JavaScriptMinifierTest::provideLineBreaker ( )
static

Definition at line 216 of file JavaScriptMinifierTest.php.

References e, key, and name.

◆ setMaxLineLength()

JavaScriptMinifierTest::setMaxLineLength (   $val)
private

Definition at line 13 of file JavaScriptMinifierTest.php.

References class.

Referenced by tearDown(), and testLineBreaker().

◆ tearDown()

JavaScriptMinifierTest::tearDown ( )
protected

Definition at line 7 of file JavaScriptMinifierTest.php.

References setMaxLineLength().

◆ testLineBreaker()

JavaScriptMinifierTest::testLineBreaker (   $code,
array  $expectedLines 
)

provideLineBreaker JavaScriptMinifier::minify

Definition at line 359 of file JavaScriptMinifierTest.php.

References $code, JavaScriptMinifier\minify(), and setMaxLineLength().

◆ testMinifyOutput()

JavaScriptMinifierTest::testMinifyOutput (   $code,
  $expectedOutput,
  $expectedValid = true 
)

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