MediaWiki
1.30.0
|
ComposerVersionNormalizer. More...
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) | |
ComposerHooks
Definition at line 10 of file ComposerVersionNormalizerTest.php.
|
protected |
Definition at line 39 of file ComposerVersionNormalizerTest.php.
Referenced by testGivenComplexVersionWithDash_normalizeSuffixReturnsAsIs(), testGivenInvalidVersion_normalizeSuffixReturnsAsIs(), and testGivenSimpleVersion_normalizeSuffixReturnsAsIs().
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().