diff --git a/pear/tests/pear_versioncmp.phpt b/pear/tests/pear_versioncmp.phpt new file mode 100644 index 00000000000..4611623d52f --- /dev/null +++ b/pear/tests/pear_versioncmp.phpt @@ -0,0 +1,65 @@ +--TEST-- +PEAR::phpVersionIs() +--SKIPIF-- +--FILE-- + +--GET-- +--POST-- +--EXPECT-- +4.0.7 minor than 4.0.5 is FALSE OK +4.0.7 minor than 4.0.99 is TRUE OK +4.0.7 minor than 4.0.7 is FALSE OK +4.0.7 minor than 4.0.99pl1 is TRUE OK +4.0.7 minor than 4.0.99RC1 is TRUE OK +4.0.7 minor than 4.0.99-dev is TRUE OK +4.0.7 greater than 4.0.5 is TRUE OK +4.0.7 greater than 4.0.99 is FALSE OK +4.0.7 greater than 4.0.7 is FALSE OK +4.0.7 minor than 4.0.5 greater than 4.0.99 is FALSE OK +4.0.7 minor than 4.0.99 greater than 4.0.5 is TRUE OK +4.0.7 minor than 4.0.7 greater than 4.0.5 is FALSE OK +4.0.7 minor than 4.0.99 greater than 4.0.7 is FALSE OK