MediaWiki  master
MediaHandlerTest Class Reference

Media. More...

Inheritance diagram for MediaHandlerTest:
Collaboration diagram for MediaHandlerTest:

Public Member Functions

 testFitBoxWidth ( $width, $height, $max, $expected)
 MediaHandler::fitBoxWidth. More...
 

Static Public Member Functions

static provideTestFitBoxWidth ()
 

Static Private Member Functions

static generateTestFitBoxWidthData ( $width, $height, $tests)
 Generate single test cases by combining the dimensions and tests contents. More...
 

Additional Inherited Members

- Protected Member Functions inherited from MediaWikiUnitTestCase
 setUp ()
 
 tearDown ()
 

Detailed Description

Media.

Definition at line 6 of file MediaHandlerTest.php.

Member Function Documentation

◆ generateTestFitBoxWidthData()

static MediaHandlerTest::generateTestFitBoxWidthData (   $width,
  $height,
  $tests 
)
staticprivate

Generate single test cases by combining the dimensions and tests contents.

It creates: [$width, $height, $max, $expected], [$width, $height, $max2, $expected2], ... out of parameters: $width, $height, { $max => $expected, $max2 => $expected2, ... }

Parameters
int$width
int$height
array$testsassociative array of $max => $expected values
Returns
array

Definition at line 61 of file MediaHandlerTest.php.

References as.

◆ provideTestFitBoxWidth()

static MediaHandlerTest::provideTestFitBoxWidth ( )
static

Definition at line 22 of file MediaHandlerTest.php.

◆ testFitBoxWidth()

MediaHandlerTest::testFitBoxWidth (   $width,
  $height,
  $max,
  $expected 
)

MediaHandler::fitBoxWidth.

provideTestFitBoxWidth

Definition at line 13 of file MediaHandlerTest.php.

References MediaHandler\fitBoxWidth().


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