MediaWiki
1.23.2
|
@covers ComposerVersionNormalizer More...
Protected Member Functions | |
assertRemainsUnchanged ( $version) | |
@covers ComposerVersionNormalizer
@group ComposerHooks
@licence GNU GPL v2+
Definition at line 11 of file ComposerVersionNormalizerTest.php.
|
protected |
Definition at line 40 of file ComposerVersionNormalizerTest.php.
References $normalizer, and $version.
Referenced by testGivenComplexVersionWithDash_normalizeSuffixReturnsAsIs(), testGivenInvalidVersion_normalizeSuffixReturnsAsIs(), and testGivenSimpleVersion_normalizeSuffixReturnsAsIs().
ComposerVersionNormalizerTest::complexVersionProvider | ( | ) |
Definition at line 71 of file ComposerVersionNormalizerTest.php.
References array().
ComposerVersionNormalizerTest::fourLevelVersionsProvider | ( | ) |
Definition at line 102 of file ComposerVersionNormalizerTest.php.
References array().
ComposerVersionNormalizerTest::invalidVersionProvider | ( | ) |
Definition at line 144 of file ComposerVersionNormalizerTest.php.
References array().
ComposerVersionNormalizerTest::levelNormalizationProvider | ( | ) |
Definition at line 126 of file ComposerVersionNormalizerTest.php.
References array().
ComposerVersionNormalizerTest::nonStringProvider | ( | ) |
Definition at line 23 of file ComposerVersionNormalizerTest.php.
References array().
ComposerVersionNormalizerTest::simpleVersionProvider | ( | ) |
Definition at line 49 of file ComposerVersionNormalizerTest.php.
References array().
ComposerVersionNormalizerTest::testGivenComplexVersionWithDash_normalizeSuffixReturnsAsIs | ( | $withoutDash, | |
$withDash | |||
) |
@dataProvider complexVersionProvider
Definition at line 86 of file ComposerVersionNormalizerTest.php.
References assertRemainsUnchanged().
ComposerVersionNormalizerTest::testGivenComplexVersionWithoutDash_normalizeSuffixAddsDash | ( | $withoutDash, | |
$withDash | |||
) |
@dataProvider complexVersionProvider
Definition at line 62 of file ComposerVersionNormalizerTest.php.
References $normalizer.
ComposerVersionNormalizerTest::testGivenFewerLevels_levelCountNormalizationEnsuresFourLevels | ( | $expected, | |
$version | |||
) |
@dataProvider levelNormalizationProvider
Definition at line 117 of file ComposerVersionNormalizerTest.php.
References $normalizer, and $version.
ComposerVersionNormalizerTest::testGivenFourLevels_levelCountNormalizationDoesNothing | ( | $version | ) |
@dataProvider fourLevelVersionsProvider
Definition at line 93 of file ComposerVersionNormalizerTest.php.
References $normalizer, and $version.
ComposerVersionNormalizerTest::testGivenInvalidVersion_normalizeSuffixReturnsAsIs | ( | $invalidVersion | ) |
@dataProvider invalidVersionProvider
Definition at line 140 of file ComposerVersionNormalizerTest.php.
References assertRemainsUnchanged().
ComposerVersionNormalizerTest::testGivenNonString_normalizeThrowsInvalidArgumentException | ( | $nonString | ) |
@dataProvider nonStringProvider
Definition at line 16 of file ComposerVersionNormalizerTest.php.
References $normalizer.
ComposerVersionNormalizerTest::testGivenSimpleVersion_normalizeSuffixReturnsAsIs | ( | $simpleVersion | ) |
@dataProvider simpleVersionProvider
Definition at line 36 of file ComposerVersionNormalizerTest.php.
References assertRemainsUnchanged().