From 20505d84837cac8bcbddef624fe340c8d633cf5d Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Fri, 5 Oct 2001 13:02:08 +0000 Subject: [PATCH] added tests for PHP version comparing functions --- pear/tests/pear_versioncmp.phpt | 65 +++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 pear/tests/pear_versioncmp.phpt 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