From: Felipe Pena Date: Tue, 11 Mar 2008 15:21:38 +0000 (+0000) Subject: New tests X-Git-Tag: RELEASE_2_0_0a1~172 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62c41d3f1a39bee739d40ba8f1cea6adb694b3aa;p=php New tests --- 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