From 920fa567bdf2e8ac3f037ef94008827afed0ea76 Mon Sep 17 00:00:00 2001 From: Shein Alexey Date: Fri, 2 Sep 2011 17:41:39 +0000 Subject: [PATCH] Removed old (< 5.3) version of test and cleaned up the actual version. --- ext/zip/tests/bug38943.inc | 16 --------------- ext/zip/tests/bug38943.phpt | 24 ++++++++++++++++------ ext/zip/tests/bug38943_2.phpt | 38 ----------------------------------- 3 files changed, 18 insertions(+), 60 deletions(-) delete mode 100644 ext/zip/tests/bug38943.inc delete mode 100644 ext/zip/tests/bug38943_2.phpt diff --git a/ext/zip/tests/bug38943.inc b/ext/zip/tests/bug38943.inc deleted file mode 100644 index a6f45e8294e..00000000000 --- a/ext/zip/tests/bug38943.inc +++ /dev/null @@ -1,16 +0,0 @@ -testarray[] = 1; - var_dump($this->testarray); - } -} - -$z = new myZip; -$z->testp = "foobar"; -var_dump($z); - diff --git a/ext/zip/tests/bug38943.phpt b/ext/zip/tests/bug38943.phpt index 02985848dc2..c5e22847192 100644 --- a/ext/zip/tests/bug38943.phpt +++ b/ext/zip/tests/bug38943.phpt @@ -1,14 +1,26 @@ --TEST-- -#38943, properties in extended class cannot be set (< 5.3) +#38943, properties in extended class cannot be set (5.3+) --SKIPIF-- --FILE-- testarray[] = 1; + var_dump($this->testarray); + } +} + +$z = new myZip; +$z->testp = "foobar"; +var_dump($z); + ?> --EXPECTF-- array(1) { @@ -16,11 +28,11 @@ array(1) { int(1) } object(myZip)#1 (%d) { - ["test:private"]=> + ["test":"myZip":private]=> int(0) ["testp"]=> string(6) "foobar" - ["testarray:private"]=> + ["testarray":"myZip":private]=> array(1) { [0]=> int(1) diff --git a/ext/zip/tests/bug38943_2.phpt b/ext/zip/tests/bug38943_2.phpt deleted file mode 100644 index 8672d9d3291..00000000000 --- a/ext/zip/tests/bug38943_2.phpt +++ /dev/null @@ -1,38 +0,0 @@ ---TEST-- -#38943, properties in extended class cannot be set (5.3) ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -array(1) { - [0]=> - int(1) -} -object(myZip)#1 (%d) { - ["test":"myZip":private]=> - int(0) - ["testp"]=> - string(6) "foobar" - ["testarray":"myZip":private]=> - array(1) { - [0]=> - int(1) - } - ["status"]=> - int(0) - ["statusSys"]=> - int(0) - ["numFiles"]=> - int(0) - ["filename"]=> - string(0) "" - ["comment"]=> - string(0) "" -}