MediaWiki REL1_33
|
ComposerVersionNormalizer. More...
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) | |
ComposerHooks
Definition at line 10 of file ComposerVersionNormalizerTest.php.
|
protected |
Definition at line 42 of file ComposerVersionNormalizerTest.php.
References and().
Referenced by testGivenComplexVersionWithDash_normalizeSuffixReturnsAsIs(), testGivenInvalidVersion_normalizeSuffixReturnsAsIs(), and testGivenSimpleVersion_normalizeSuffixReturnsAsIs().
ComposerVersionNormalizerTest::complexVersionProvider | ( | ) |
Definition at line 75 of file ComposerVersionNormalizerTest.php.
ComposerVersionNormalizerTest::fourLevelVersionsProvider | ( | ) |
Definition at line 108 of file ComposerVersionNormalizerTest.php.
ComposerVersionNormalizerTest::invalidVersionProvider | ( | ) |
Definition at line 152 of file ComposerVersionNormalizerTest.php.
ComposerVersionNormalizerTest::levelNormalizationProvider | ( | ) |
Definition at line 134 of file ComposerVersionNormalizerTest.php.
ComposerVersionNormalizerTest::nonStringProvider | ( | ) |
Definition at line 25 of file ComposerVersionNormalizerTest.php.
ComposerVersionNormalizerTest::simpleVersionProvider | ( | ) |
Definition at line 51 of file ComposerVersionNormalizerTest.php.
ComposerVersionNormalizerTest::testGivenComplexVersionWithDash_normalizeSuffixReturnsAsIs | ( | $withoutDash, | |
$withDash ) |
complexVersionProvider
Definition at line 90 of file ComposerVersionNormalizerTest.php.
References assertRemainsUnchanged().
ComposerVersionNormalizerTest::testGivenComplexVersionWithoutDash_normalizeSuffixAddsDash | ( | $withoutDash, | |
$withDash ) |
complexVersionProvider
Definition at line 64 of file ComposerVersionNormalizerTest.php.
References and().
ComposerVersionNormalizerTest::testGivenFewerLevels_levelCountNormalizationEnsuresFourLevels | ( | $expected, | |
$version ) |
levelNormalizationProvider
Definition at line 123 of file ComposerVersionNormalizerTest.php.
References and().
ComposerVersionNormalizerTest::testGivenFourLevels_levelCountNormalizationDoesNothing | ( | $version | ) |
fourLevelVersionsProvider
Definition at line 99 of file ComposerVersionNormalizerTest.php.
References and().
ComposerVersionNormalizerTest::testGivenInvalidVersion_normalizeSuffixReturnsAsIs | ( | $invalidVersion | ) |
invalidVersionProvider
Definition at line 148 of file ComposerVersionNormalizerTest.php.
References assertRemainsUnchanged().
ComposerVersionNormalizerTest::testGivenNonString_normalizeThrowsInvalidArgumentException | ( | $nonString | ) |
nonStringProvider
Definition at line 18 of file ComposerVersionNormalizerTest.php.
References and().
ComposerVersionNormalizerTest::testGivenSimpleVersion_normalizeSuffixReturnsAsIs | ( | $simpleVersion | ) |
simpleVersionProvider
Definition at line 38 of file ComposerVersionNormalizerTest.php.
References assertRemainsUnchanged().