From 999d2e22942fd5f3a7bb4e395e46e3449ce44b34 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 11 Mar 2008 15:18:58 +0000 Subject: [PATCH] New tests --- Zend/tests/class_constants_004.phpt | 42 +++++++++++++++++++++++++++++ Zend/tests/objects_017.phpt | 18 +++++++++++++ Zend/tests/objects_018.phpt | 19 +++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 Zend/tests/class_constants_004.phpt create mode 100644 Zend/tests/objects_017.phpt create mode 100644 Zend/tests/objects_018.phpt diff --git a/Zend/tests/class_constants_004.phpt b/Zend/tests/class_constants_004.phpt new file mode 100644 index 0000000000..a4abf6921e --- /dev/null +++ b/Zend/tests/class_constants_004.phpt @@ -0,0 +1,42 @@ +--TEST-- +Testing constants (normal, namespace, class and interface) +--FILE-- + +--EXPECT-- +int(1) +int(1) +int(1) +int(2) +int(2) +int(3) +int(3) +int(4) diff --git a/Zend/tests/objects_017.phpt b/Zend/tests/objects_017.phpt new file mode 100644 index 0000000000..63030304ff --- /dev/null +++ b/Zend/tests/objects_017.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing visibility of object returned by function +--FILE-- +test = 2; + +?> +--EXPECTF-- +Fatal error: Cannot access private property foo::$test in %s on line %d diff --git a/Zend/tests/objects_018.phpt b/Zend/tests/objects_018.phpt new file mode 100644 index 0000000000..5a24f4d42b --- /dev/null +++ b/Zend/tests/objects_018.phpt @@ -0,0 +1,19 @@ +--TEST-- +Using the same function name on interface with inheritance +--FILE-- + +--EXPECTF-- +Fatal error: Can't inherit abstract function Itest2::a() (previously declared abstract in Itest) in %s on line %d -- 2.50.1