MediaWiki  1.28.0
ComposerVersionNormalizerTest Class Reference

ComposerVersionNormalizer. More...

Inheritance diagram for ComposerVersionNormalizerTest:
Collaboration diagram for ComposerVersionNormalizerTest:

Public Member Functions

 complexVersionProvider ()
 
 fourLevelVersionsProvider ()
 
 invalidVersionProvider ()
 
 levelNormalizationProvider ()
 
 nonStringProvider ()
 
 simpleVersionProvider ()
 
 testGivenComplexVersionWithDash_normalizeSuffixReturnsAsIs ($withoutDash, $withDash)
 complexVersionProvider More...
 
 testGivenComplexVersionWithoutDash_normalizeSuffixAddsDash ($withoutDash, $withDash)
 complexVersionProvider More...
 
 testGivenFewerLevels_levelCountNormalizationEnsuresFourLevels ($expected, $version)
 levelNormalizationProvider More...
 
 testGivenFourLevels_levelCountNormalizationDoesNothing ($version)
 fourLevelVersionsProvider More...
 
 testGivenInvalidVersion_normalizeSuffixReturnsAsIs ($invalidVersion)
 invalidVersionProvider More...
 
 testGivenNonString_normalizeThrowsInvalidArgumentException ($nonString)
 nonStringProvider More...
 
 testGivenSimpleVersion_normalizeSuffixReturnsAsIs ($simpleVersion)
 simpleVersionProvider More...
 

Protected Member Functions

 assertRemainsUnchanged ($version)
 

Detailed Description

Member Function Documentation

ComposerVersionNormalizerTest::assertRemainsUnchanged (   $version)
protected
ComposerVersionNormalizerTest::complexVersionProvider ( )

Definition at line 72 of file ComposerVersionNormalizerTest.php.

ComposerVersionNormalizerTest::fourLevelVersionsProvider ( )

Definition at line 105 of file ComposerVersionNormalizerTest.php.

ComposerVersionNormalizerTest::invalidVersionProvider ( )

Definition at line 149 of file ComposerVersionNormalizerTest.php.

ComposerVersionNormalizerTest::levelNormalizationProvider ( )

Definition at line 131 of file ComposerVersionNormalizerTest.php.

ComposerVersionNormalizerTest::nonStringProvider ( )

Definition at line 22 of file ComposerVersionNormalizerTest.php.

References true.

ComposerVersionNormalizerTest::simpleVersionProvider ( )

Definition at line 48 of file ComposerVersionNormalizerTest.php.

ComposerVersionNormalizerTest::testGivenComplexVersionWithDash_normalizeSuffixReturnsAsIs (   $withoutDash,
  $withDash 
)

complexVersionProvider

Definition at line 87 of file ComposerVersionNormalizerTest.php.

References assertRemainsUnchanged().

ComposerVersionNormalizerTest::testGivenComplexVersionWithoutDash_normalizeSuffixAddsDash (   $withoutDash,
  $withDash 
)

complexVersionProvider

Definition at line 61 of file ComposerVersionNormalizerTest.php.

ComposerVersionNormalizerTest::testGivenFewerLevels_levelCountNormalizationEnsuresFourLevels (   $expected,
  $version 
)

levelNormalizationProvider

Definition at line 120 of file ComposerVersionNormalizerTest.php.

ComposerVersionNormalizerTest::testGivenFourLevels_levelCountNormalizationDoesNothing (   $version)

fourLevelVersionsProvider

Definition at line 96 of file ComposerVersionNormalizerTest.php.

ComposerVersionNormalizerTest::testGivenInvalidVersion_normalizeSuffixReturnsAsIs (   $invalidVersion)

invalidVersionProvider

Definition at line 145 of file ComposerVersionNormalizerTest.php.

References assertRemainsUnchanged().

ComposerVersionNormalizerTest::testGivenNonString_normalizeThrowsInvalidArgumentException (   $nonString)

nonStringProvider

Definition at line 15 of file ComposerVersionNormalizerTest.php.

ComposerVersionNormalizerTest::testGivenSimpleVersion_normalizeSuffixReturnsAsIs (   $simpleVersion)

simpleVersionProvider

Definition at line 35 of file ComposerVersionNormalizerTest.php.

References assertRemainsUnchanged().


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