MediaWiki REL1_31
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
 
 testGivenComplexVersionWithoutDash_normalizeSuffixAddsDash ( $withoutDash, $withDash)
 complexVersionProvider
 
 testGivenFewerLevels_levelCountNormalizationEnsuresFourLevels ( $expected, $version)
 levelNormalizationProvider
 
 testGivenFourLevels_levelCountNormalizationDoesNothing ( $version)
 fourLevelVersionsProvider
 
 testGivenInvalidVersion_normalizeSuffixReturnsAsIs ( $invalidVersion)
 invalidVersionProvider
 
 testGivenNonString_normalizeThrowsInvalidArgumentException ( $nonString)
 nonStringProvider
 
 testGivenSimpleVersion_normalizeSuffixReturnsAsIs ( $simpleVersion)
 simpleVersionProvider
 

Protected Member Functions

 assertRemainsUnchanged ( $version)
 

Detailed Description

Member Function Documentation

◆ assertRemainsUnchanged()

◆ complexVersionProvider()

ComposerVersionNormalizerTest::complexVersionProvider ( )

Definition at line 75 of file ComposerVersionNormalizerTest.php.

◆ fourLevelVersionsProvider()

ComposerVersionNormalizerTest::fourLevelVersionsProvider ( )

Definition at line 108 of file ComposerVersionNormalizerTest.php.

◆ invalidVersionProvider()

ComposerVersionNormalizerTest::invalidVersionProvider ( )

Definition at line 152 of file ComposerVersionNormalizerTest.php.

◆ levelNormalizationProvider()

ComposerVersionNormalizerTest::levelNormalizationProvider ( )

Definition at line 134 of file ComposerVersionNormalizerTest.php.

◆ nonStringProvider()

ComposerVersionNormalizerTest::nonStringProvider ( )

Definition at line 25 of file ComposerVersionNormalizerTest.php.

References true.

◆ simpleVersionProvider()

ComposerVersionNormalizerTest::simpleVersionProvider ( )

Definition at line 51 of file ComposerVersionNormalizerTest.php.

◆ testGivenComplexVersionWithDash_normalizeSuffixReturnsAsIs()

ComposerVersionNormalizerTest::testGivenComplexVersionWithDash_normalizeSuffixReturnsAsIs ( $withoutDash,
$withDash )

complexVersionProvider

Definition at line 90 of file ComposerVersionNormalizerTest.php.

References assertRemainsUnchanged().

◆ testGivenComplexVersionWithoutDash_normalizeSuffixAddsDash()

ComposerVersionNormalizerTest::testGivenComplexVersionWithoutDash_normalizeSuffixAddsDash ( $withoutDash,
$withDash )

complexVersionProvider

Definition at line 64 of file ComposerVersionNormalizerTest.php.

◆ testGivenFewerLevels_levelCountNormalizationEnsuresFourLevels()

ComposerVersionNormalizerTest::testGivenFewerLevels_levelCountNormalizationEnsuresFourLevels ( $expected,
$version )

levelNormalizationProvider

Definition at line 123 of file ComposerVersionNormalizerTest.php.

◆ testGivenFourLevels_levelCountNormalizationDoesNothing()

ComposerVersionNormalizerTest::testGivenFourLevels_levelCountNormalizationDoesNothing ( $version)

fourLevelVersionsProvider

Definition at line 99 of file ComposerVersionNormalizerTest.php.

◆ testGivenInvalidVersion_normalizeSuffixReturnsAsIs()

ComposerVersionNormalizerTest::testGivenInvalidVersion_normalizeSuffixReturnsAsIs ( $invalidVersion)

invalidVersionProvider

Definition at line 148 of file ComposerVersionNormalizerTest.php.

References assertRemainsUnchanged().

◆ testGivenNonString_normalizeThrowsInvalidArgumentException()

ComposerVersionNormalizerTest::testGivenNonString_normalizeThrowsInvalidArgumentException ( $nonString)

nonStringProvider

Definition at line 18 of file ComposerVersionNormalizerTest.php.

◆ testGivenSimpleVersion_normalizeSuffixReturnsAsIs()

ComposerVersionNormalizerTest::testGivenSimpleVersion_normalizeSuffixReturnsAsIs ( $simpleVersion)

simpleVersionProvider

Definition at line 38 of file ComposerVersionNormalizerTest.php.

References assertRemainsUnchanged().


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