From: Antony Dovgal Date: Fri, 2 Feb 2007 11:10:42 +0000 (+0000) Subject: add new tests X-Git-Tag: RELEASE_1_0_0RC1~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=afe43f7794a92c8e78d9e1329ff6b80ac62baa6c;p=php add new tests --- diff --git a/Zend/tests/globals.inc b/Zend/tests/globals.inc new file mode 100644 index 0000000000..976237cf1f --- /dev/null +++ b/Zend/tests/globals.inc @@ -0,0 +1,15 @@ + diff --git a/Zend/tests/globals_001.phpt b/Zend/tests/globals_001.phpt new file mode 100644 index 0000000000..a9740a57ab --- /dev/null +++ b/Zend/tests/globals_001.phpt @@ -0,0 +1,47 @@ +--TEST-- +globals in global scope +--INIT-- +variables_order="egpcs" +--FILE-- + +--EXPECTF-- +bool(true) +bool(false) +string(5) "array" +int(%d) +string(%d) "%s" + +Notice: Undefined index: PHP_SELF in %s on line %d +NULL + +Notice: Undefined variable: _SERVER in %s on line %d +NULL +Done +--UEXPECTF-- +bool(true) +bool(false) +unicode(5) "array" +int(%d) +string(%d) "%s" + +Notice: Undefined index: PHP_SELF in %s on line %d +NULL + +Notice: Undefined variable: _SERVER in %s on line %d +NULL +Done diff --git a/Zend/tests/globals_002.phpt b/Zend/tests/globals_002.phpt new file mode 100644 index 0000000000..f94a0a36cb --- /dev/null +++ b/Zend/tests/globals_002.phpt @@ -0,0 +1,50 @@ +--TEST-- +globals in local scope +--INIT-- +variables_order="egpcs" +--FILE-- + +--EXPECTF-- +bool(true) +bool(false) +string(5) "array" +int(%d) +string(%d) "%s" + +Notice: Undefined index: PHP_SELF in %s on line %d +NULL + +Notice: Undefined variable: _SERVER in %s on line %d +NULL +Done +--UEXPECTF-- +bool(true) +bool(false) +unicode(5) "array" +int(%d) +string(%d) "%s" + +Notice: Undefined index: PHP_SELF in %s on line %d +NULL + +Notice: Undefined variable: _SERVER in %s on line %d +NULL +Done diff --git a/Zend/tests/globals_003.phpt b/Zend/tests/globals_003.phpt new file mode 100644 index 0000000000..98c2487e81 --- /dev/null +++ b/Zend/tests/globals_003.phpt @@ -0,0 +1,56 @@ +--TEST-- +globals in local scope - 2 +--INIT-- +variables_order="egpcs" +--FILE-- + +--EXPECTF-- +bool(true) +bool(false) +string(5) "array" +int(%d) +string(%d) "%s" + +Notice: Undefined index: PHP_SELF in %s on line %d +NULL + +Notice: Undefined variable: _SERVER in %s on line %d +NULL +Done +--UEXPECTF-- +bool(true) +bool(false) +unicode(5) "array" +int(%d) +string(%d) "%s" + +Notice: Undefined index: PHP_SELF in %s on line %d +NULL + +Notice: Undefined variable: _SERVER in %s on line %d +NULL +Done diff --git a/Zend/tests/globals_004.phpt b/Zend/tests/globals_004.phpt new file mode 100644 index 0000000000..8a43c0eef1 --- /dev/null +++ b/Zend/tests/globals_004.phpt @@ -0,0 +1,41 @@ +--TEST-- +globals in local scope - 3 +--INIT-- +variables_order="egpcs" +--FILE-- + +--EXPECTF-- +bool(true) +bool(false) +string(5) "array" +int(%d) +string(%d) "%s" + +Notice: Undefined index: PHP_SELF in %s on line %d +NULL + +Notice: Undefined variable: _SERVER in %s on line %d +NULL +Done +--UEXPECTF-- +bool(true) +bool(false) +unicode(5) "array" +int(%d) +string(%d) "%s" + +Notice: Undefined index: PHP_SELF in %s on line %d +NULL + +Notice: Undefined variable: _SERVER in %s on line %d +NULL +Done