diff --git a/pear/tests/pear_common_validPackageVersion.phpt b/pear/tests/pear_common_validPackageVersion.phpt new file mode 100644 index 00000000000..a23477a2b2c --- /dev/null +++ b/pear/tests/pear_common_validPackageVersion.phpt @@ -0,0 +1,83 @@ +--TEST-- +PEAR_Common::validPackageVersion test +--SKIPIF-- + +--FILE-- + +--GET-- +--POST-- +--EXPECT-- +==Valid Tests== +1 valid +1.1 valid +1.1.1 valid +1.1.1.1 valid +1.1.1abc3 valid +1.234beta4 valid +1alpha3 valid +1alpha valid +1.1a valid +==Invalid Tests== +1.0.0-alpha2 invalid +1alpha.4 invalid +1.1alpha.4 invalid