[PHP-CVS] cvs: php-src /ext/simplexml/tests 007.phpt 015.phpt 016.phpt bug24392.phpt

2004-01-22 Thread Marcus Boerger
helly   Thu Jan 22 16:47:54 2004 EDT

  Modified files:  
/php-src/ext/simplexml/tests007.phpt 015.phpt 016.phpt 
bug24392.phpt 
  Log:
  Update tests
  
http://cvs.php.net/diff.php/php-src/ext/simplexml/tests/007.phpt?r1=1.6r2=1.7ty=u
Index: php-src/ext/simplexml/tests/007.phpt
diff -u php-src/ext/simplexml/tests/007.phpt:1.6 
php-src/ext/simplexml/tests/007.phpt:1.7
--- php-src/ext/simplexml/tests/007.phpt:1.6Sun Jan 18 10:14:03 2004
+++ php-src/ext/simplexml/tests/007.phptThu Jan 22 16:47:54 2004
@@ -66,20 +66,20 @@
   }
 }
 ===Array===
-object(simplexml_element)#2 (1) {
+object(simplexml_element)#%d (1) {
   [0]=
   string(5) elem1
 }
-object(simplexml_element)#6 (1) {
+object(simplexml_element)#%d (1) {
   [0]=
   string(5) first
 }
 ===Set===
-object(simplexml_element)#6 (1) {
+object(simplexml_element)#%d (1) {
   [0]=
   string(8) Changed1
 }
-object(simplexml_element)#5 (1) {
+object(simplexml_element)#%d (1) {
   [0]=
   string(2) 12
 }
http://cvs.php.net/diff.php/php-src/ext/simplexml/tests/015.phpt?r1=1.4r2=1.5ty=u
Index: php-src/ext/simplexml/tests/015.phpt
diff -u php-src/ext/simplexml/tests/015.phpt:1.4 
php-src/ext/simplexml/tests/015.phpt:1.5
--- php-src/ext/simplexml/tests/015.phpt:1.4Wed Jan 21 06:32:30 2004
+++ php-src/ext/simplexml/tests/015.phptThu Jan 22 16:47:54 2004
@@ -36,20 +36,20 @@
 var_dump($people-person[1]['name']);
 ?
 ===DONE===
---EXPECT--
-object(simplexml_element)#4 (1) {
+--EXPECTF--
+object(simplexml_element)#%d (1) {
   [0]=
   string(3) Joe
 }
-object(simplexml_element)#4 (1) {
+object(simplexml_element)#%d (1) {
   [0]=
   string(3) Joe
 }
-object(simplexml_element)#1 (1) {
+object(simplexml_element)#%d (1) {
   [0]=
   string(3) Joe
 }
-object(simplexml_element)#1 (1) {
+object(simplexml_element)#%d (1) {
   [0]=
   string(3) Boe
 }
http://cvs.php.net/diff.php/php-src/ext/simplexml/tests/016.phpt?r1=1.4r2=1.5ty=u
Index: php-src/ext/simplexml/tests/016.phpt
diff -u php-src/ext/simplexml/tests/016.phpt:1.4 
php-src/ext/simplexml/tests/016.phpt:1.5
--- php-src/ext/simplexml/tests/016.phpt:1.4Sat Jan 17 14:41:32 2004
+++ php-src/ext/simplexml/tests/016.phptThu Jan 22 16:47:54 2004
@@ -28,29 +28,29 @@
 
 ?
 ===DONE===
---EXPECT--
-object(simplexml_element)#4 (1) {
+--EXPECTF--
+object(simplexml_element)#%d (1) {
   [0]=
   string(3) Joe
 }
-object(simplexml_element)#2 (1) {
+object(simplexml_element)#%d (1) {
   [0]=
   string(6) JoeFoo
 }
-object(simplexml_element)#5 (1) {
+object(simplexml_element)#%d (1) {
   [0]=
   string(9) JoeFooBar
 }
 ---[0]---
-object(simplexml_element)#3 (1) {
+object(simplexml_element)#%d (1) {
   [0]=
   string(3) Joe
 }
-object(simplexml_element)#2 (1) {
+object(simplexml_element)#%d (1) {
   [0]=
   string(6) JoeFoo
 }
-object(simplexml_element)#5 (1) {
+object(simplexml_element)#%d (1) {
   [0]=
   string(9) JoeFooBar
 }
http://cvs.php.net/diff.php/php-src/ext/simplexml/tests/bug24392.phpt?r1=1.2r2=1.3ty=u
Index: php-src/ext/simplexml/tests/bug24392.phpt
diff -u php-src/ext/simplexml/tests/bug24392.phpt:1.2 
php-src/ext/simplexml/tests/bug24392.phpt:1.3
--- php-src/ext/simplexml/tests/bug24392.phpt:1.2   Sun Oct  5 09:53:16 2003
+++ php-src/ext/simplexml/tests/bug24392.phpt   Thu Jan 22 16:47:54 2004
@@ -2,9 +2,6 @@
 Bug #24392 (empty namespaces causing confusion)
 --SKIPIF--
 ?php if (!extension_loaded(simplexml)) print skip simplexml extension is not 
loaded; ?
---POST--
---GET--
---INI--
 --FILE--
 ?php 
 $s = simplexml_load_file(dirname(__FILE__).'/bug24392.xml');

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/simplexml/tests 007.phpt

2003-10-29 Thread Moriyoshi Koizumi
moriyoshi   Wed Oct 29 12:58:41 2003 EDT

  Modified files:  
/php-src/ext/simplexml/tests007.phpt 
  Log:
  Update test for an additional check to ensure the variable used for an
  index would not be modified during deference.
  
  
Index: php-src/ext/simplexml/tests/007.phpt
diff -u php-src/ext/simplexml/tests/007.phpt:1.2 
php-src/ext/simplexml/tests/007.phpt:1.3
--- php-src/ext/simplexml/tests/007.phpt:1.2Wed Oct 29 07:06:52 2003
+++ php-src/ext/simplexml/tests/007.phptWed Oct 29 12:58:40 2003
@@ -23,7 +23,11 @@
 var_dump($sxe['id']);
 unset($sxe-elem1['attr1']);
 var_dump($sxe-elem1['attr1']);
-
+echo ===Misc.===\n;
+$a = 4;
+var_dump($a);
+$dummy = $sxe-elem1[$a];
+var_dump($a);
 ?
 ===Done===
 --EXPECT--
@@ -39,4 +43,7 @@
 ===Unset===
 NULL
 NULL
+===Misc.===
+int(4)
+int(4)
 ===Done===

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/simplexml/tests 007.phpt

2003-10-26 Thread Marcus Boerger
helly   Sun Oct 26 08:27:27 2003 EDT

  Added files: 
/php-src/ext/simplexml/tests007.phpt 
  Log:
  Add attribute test
  

Index: php-src/ext/simplexml/tests/007.phpt
+++ php-src/ext/simplexml/tests/007.phpt
--TEST--
SimpleXML and attributes
--SKIPIF--
?php if (!extension_loaded(simplexml)) print skip; ?
--FILE--
?php 

$sxe = simplexml_load_file(dirname(__FILE__).'/sxe.xml');

var_dump($sxe-id);
var_dump($sxe-elem1-attr1);

echo ===Done===\n;

?
--EXPECT--
string(5) elem1
string(5) first
===Done===

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php