diff --git a/tests/core/classes/abstract_class.phpt b/tests/core/classes/abstract_class.phpt deleted file mode 100644 index cae9c8a5..00000000 --- a/tests/core/classes/abstract_class.phpt +++ /dev/null @@ -1,32 +0,0 @@ ---TEST-- -ZE2 An abstract class cannot be instantiated ---FILE-- -show(); - - $t = new fail(); - $t->show(); - - echo "Done\n"; // shouldn't be displayed -} -?> ---EXPECTF-- -Call to function show() - -Fatal error: Uncaught Error: Cannot instantiate abstract class fail in %s:%d -Stack trace: -#0 Unknown(0) : %s -#1 {main} - thrown in %s on line %d diff --git a/tests/core/classes/final.phpt b/tests/core/classes/final-class.phpt similarity index 100% rename from tests/core/classes/final.phpt rename to tests/core/classes/final-class.phpt diff --git a/tests/core/classes/iterators_004.phpt b/tests/core/classes/iterators_004.phpt index 857afdd9..a2e38d22 100644 --- a/tests/core/classes/iterators_004.phpt +++ b/tests/core/classes/iterators_004.phpt @@ -39,9 +39,9 @@ function main() { } echo "2nd try\n"; - $obj = new c2(); + $obj2 = new c2(); - foreach($obj as $v => $w) { + foreach($obj2 as $v => $w) { echo "object:$v=>$w\n"; } diff --git a/tests/core/classes/iterators_006.phpt b/tests/core/classes/iterators_006.phpt index 1cb34097..c9fd72f7 100644 --- a/tests/core/classes/iterators_006.phpt +++ b/tests/core/classes/iterators_006.phpt @@ -58,15 +58,15 @@ function main() { #var_dump($array->current()); echo "===2nd===\n"; - $array = new ai(); + $array2 = new ai(); - foreach ($array as $property => $value) { + foreach ($array2 as $property => $value) { print "$property: $value\n"; } echo "===3rd===\n"; - foreach ($array as $property => $value) { + foreach ($array2 as $property => $value) { print "$property: $value\n"; } }