summaryrefslogtreecommitdiff
path: root/tests/php/phpt/class_obj
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-11-05 10:25:57 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-11-05 10:25:57 +0100
commitaec191bc6cbb83884466800a750ecad0b37e254f (patch)
treef52fe2b9551056580c5c519fb78a3c5600e1034a /tests/php/phpt/class_obj
parentaf530282f530580c1ed7bc184df0a727068275e1 (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')
-rw-r--r--tests/php/phpt/class_obj/001.phpt14
-rw-r--r--tests/php/phpt/class_obj/002.phpt14
-rw-r--r--tests/php/phpt/class_obj/003-comparable.phpt46
-rw-r--r--tests/php/phpt/class_obj/004-static-funct.phpt26
-rw-r--r--tests/php/phpt/class_obj/005-static-prop.phpt32
-rw-r--r--tests/php/phpt/class_obj/readme1
6 files changed, 0 insertions, 133 deletions
diff --git a/tests/php/phpt/class_obj/001.phpt b/tests/php/phpt/class_obj/001.phpt
deleted file mode 100644
index b22a44c..0000000
--- a/tests/php/phpt/class_obj/001.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-Test constructor & destructor
---SKIPIF--
-<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
---FILEEOF--
-<?php
-
-new TestBaseClass\MyClass();
-
-
-echo PHP_EOL;
---EXPECT--
-MyCustomClass::MyCustomClass()
-MyCustomClass::~MyCustomClass \ No newline at end of file
diff --git a/tests/php/phpt/class_obj/002.phpt b/tests/php/phpt/class_obj/002.phpt
deleted file mode 100644
index 847e602..0000000
--- a/tests/php/phpt/class_obj/002.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-Test constructor & destructor
---SKIPIF--
-<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
---FILEEOF--
-<?php
-
-echo count(new TestBaseClass\MyClass($x));
-
-echo PHP_EOL;
---EXPECT--
-MyCustomClass::MyCustomClass()
-MyCustomClass::~MyCustomClass
-33 \ No newline at end of file
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
diff --git a/tests/php/phpt/class_obj/004-static-funct.phpt b/tests/php/phpt/class_obj/004-static-funct.phpt
deleted file mode 100644
index 8c78210..0000000
--- a/tests/php/phpt/class_obj/004-static-funct.phpt
+++ /dev/null
@@ -1,26 +0,0 @@
---TEST--
-Test class with static function
---SKIPIF--
-<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
---FILEEOF--
-<?php
-
-// this will call PublicClass::staticMethod()
-TestBaseClass\ClassWithStatic::static1();
-
-// this will call PrivateClass::staticMethod()
-TestBaseClass\ClassWithStatic::static2();
-
-// this will call regularFunction()
-TestBaseClass\ClassWithStatic::static3();
-
-// this will also call PrivateClass::staticMethod()
-TestBaseClass\staticFun1();
-
-
-//echo PHP_EOL;
---EXPECT--
-testStaticPubClass::staticMethod()
-testStatic regular function
-testStaticPrivClass::staticMethod()
-testStaticPrivClass::staticMethod() \ No newline at end of file
diff --git a/tests/php/phpt/class_obj/005-static-prop.phpt b/tests/php/phpt/class_obj/005-static-prop.phpt
deleted file mode 100644
index c0aa2ef..0000000
--- a/tests/php/phpt/class_obj/005-static-prop.phpt
+++ /dev/null
@@ -1,32 +0,0 @@
---TEST--
-Test class with static property and class constant
---SKIPIF--
-<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
---FILEEOF--
-<?php
-
-
-var_dump( TestBaseClass\MyClass::CONSTANT1 );
-var_dump( TestBaseClass\MyClass::EXP );
-var_dump( TestBaseClass\MyClass::CONSTANT2 );
-var_dump( TestBaseClass\MyClass::CONSTANT3 );
-
-var_dump( TestBaseClass\MyClass::$StatProp1 );
-var_dump( TestBaseClass\MyClass::$Exp );
-var_dump( TestBaseClass\MyClass::$StatProp2 );
-var_dump( TestBaseClass\MyClass::$StatProp3 );
-TestBaseClass\MyClass::$StatProp2 = "otherval";
-var_dump( TestBaseClass\MyClass::$StatProp2 );
-
-
-//echo PHP_EOL;
---EXPECT--
-string(11) "some string"
-float(2.718281828459)
-int(-2582341)
-bool(true)
-string(11) "some string"
-float(2.718281828459)
-int(-2582341)
-bool(true)
-string(8) "otherval" \ No newline at end of file
diff --git a/tests/php/phpt/class_obj/readme b/tests/php/phpt/class_obj/readme
deleted file mode 100644
index 6c89a94..0000000
--- a/tests/php/phpt/class_obj/readme
+++ /dev/null
@@ -1 +0,0 @@
-tests iterator