MediaWiki  1.30.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

◆ assertRemainsUnchanged()

ComposerVersionNormalizerTest::assertRemainsUnchanged (   $version)
protected

◆ complexVersionProvider()

ComposerVersionNormalizerTest::complexVersionProvider ( )

Definition at line 72 of file ComposerVersionNormalizerTest.php.

◆ fourLevelVersionsProvider()

ComposerVersionNormalizerTest::fourLevelVersionsProvider ( )

Definition at line 105 of file ComposerVersionNormalizerTest.php.

◆ invalidVersionProvider()

ComposerVersionNormalizerTest::invalidVersionProvider ( )

Definition at line 149 of file ComposerVersionNormalizerTest.php.

◆ levelNormalizationProvider()

ComposerVersionNormalizerTest::levelNormalizationProvider ( )

Definition at line 131 of file ComposerVersionNormalizerTest.php.

◆ nonStringProvider()

ComposerVersionNormalizerTest::nonStringProvider ( )

Definition at line 22 of file ComposerVersionNormalizerTest.php.

References true.

◆ simpleVersionProvider()

ComposerVersionNormalizerTest::simpleVersionProvider ( )

Definition at line 48 of file ComposerVersionNormalizerTest.php.

◆ testGivenComplexVersionWithDash_normalizeSuffixReturnsAsIs()

ComposerVersionNormalizerTest::testGivenComplexVersionWithDash_normalizeSuffixReturnsAsIs (   $withoutDash,
  $withDash 
)

complexVersionProvider

Definition at line 87 of file ComposerVersionNormalizerTest.php.

References assertRemainsUnchanged().

◆ testGivenComplexVersionWithoutDash_normalizeSuffixAddsDash()

ComposerVersionNormalizerTest::testGivenComplexVersionWithoutDash_normalizeSuffixAddsDash (   $withoutDash,
  $withDash 
)

complexVersionProvider

Definition at line 61 of file ComposerVersionNormalizerTest.php.

◆ testGivenFewerLevels_levelCountNormalizationEnsuresFourLevels()

ComposerVersionNormalizerTest::testGivenFewerLevels_levelCountNormalizationEnsuresFourLevels (   $expected,
  $version 
)

levelNormalizationProvider

Definition at line 120 of file ComposerVersionNormalizerTest.php.

◆ testGivenFourLevels_levelCountNormalizationDoesNothing()

ComposerVersionNormalizerTest::testGivenFourLevels_levelCountNormalizationDoesNothing (   $version)

fourLevelVersionsProvider

Definition at line 96 of file ComposerVersionNormalizerTest.php.

◆ testGivenInvalidVersion_normalizeSuffixReturnsAsIs()

ComposerVersionNormalizerTest::testGivenInvalidVersion_normalizeSuffixReturnsAsIs (   $invalidVersion)

invalidVersionProvider

Definition at line 145 of file ComposerVersionNormalizerTest.php.

References assertRemainsUnchanged().

◆ testGivenNonString_normalizeThrowsInvalidArgumentException()

ComposerVersionNormalizerTest::testGivenNonString_normalizeThrowsInvalidArgumentException (   $nonString)

nonStringProvider

Definition at line 15 of file ComposerVersionNormalizerTest.php.

◆ testGivenSimpleVersion_normalizeSuffixReturnsAsIs()

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: