diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-11-05 10:25:57 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-11-05 10:25:57 +0100 |
commit | aec191bc6cbb83884466800a750ecad0b37e254f (patch) | |
tree | f52fe2b9551056580c5c519fb78a3c5600e1034a /tests/php/phpt/class_obj/003-comparable.phpt | |
parent | af530282f530580c1ed7bc184df0a727068275e1 (diff) |
remove test framework, it never works, most of the bugs found by the test framework turn out to be caused by errors in the tests instead of errors in the real code, people complain about it all the time, and basically this whole test framework causes more problems than it solves, solves issue #215 and solves issue #221
Diffstat (limited to 'tests/php/phpt/class_obj/003-comparable.phpt')
-rw-r--r-- | tests/php/phpt/class_obj/003-comparable.phpt | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/tests/php/phpt/class_obj/003-comparable.phpt b/tests/php/phpt/class_obj/003-comparable.phpt deleted file mode 100644 index 3e0b1f6..0000000 --- a/tests/php/phpt/class_obj/003-comparable.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test comparable objects ---SKIPIF-- -<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?> ---FILEEOF-- -<?php - -// initialize a couple of objects -$object1 = new TestBaseClass\Comparable(); -$object2 = new TestBaseClass\Comparable(); -$object3 = new TestBaseClass\Comparable(); - -// compare the objects -if ($object1 < $object2) -{ - echo("$object1 is smaller than $object2\n"); -} -else -{ - echo("$object1 is bigger than $object2\n"); -} - -if ($object1 == $object3) -{ - echo("$object1 is equal to $object3\n"); -} -else -{ - echo("$object1 is not equal to $object3\n"); -} - -if ($object1 != $object2) -{ - echo("$object1 is not equal to $object2\n"); -} -else -{ - echo("$object1 is equal to $object2\n"); -} - - -//echo PHP_EOL; ---EXPECT-- -Obj#1(2) is bigger than Obj#2(1) -Obj#1(2) is equal to Obj#3(2) -Obj#1(2) is not equal to Obj#2(1)
\ No newline at end of file |