[PHP-CVS] cvs: php-src /ext/simplexml/tests 011.phpt 012.phpt 013.phpt

2003-12-16 Thread Marcus Boerger
helly   Tue Dec 16 16:02:55 2003 EDT

  Modified files:  
/php-src/ext/simplexml/tests011.phpt 012.phpt 013.phpt 
  Log:
  Not needed here (copy'n'paste)
  
Index: php-src/ext/simplexml/tests/011.phpt
diff -u php-src/ext/simplexml/tests/011.phpt:1.1 
php-src/ext/simplexml/tests/011.phpt:1.2
--- php-src/ext/simplexml/tests/011.phpt:1.1Tue Dec 16 14:49:33 2003
+++ php-src/ext/simplexml/tests/011.phptTue Dec 16 16:02:54 2003
@@ -3,7 +3,6 @@
 --SKIPIF--
 
 --FILE--
 
 --FILE--
 
 --FILE--
 http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

2003-12-16 Thread Marcus Boerger
helly   Tue Dec 16 14:49:34 2003 EDT

  Added files: 
/php-src/ext/simplexml/tests011.phpt 
  Log:
  Add test for string conversion capabilities when used with echo/print.
  
  

Index: php-src/ext/simplexml/tests/011.phpt
+++ php-src/ext/simplexml/tests/011.phpt
--TEST--
SimpleXML and echo/print
--SKIPIF--

--FILE--


  bar
  baz1
  baz2

EOF;

$sxe = simplexml_load_string($xml);

echo "===BAR===\n";
echo $sxe->bar;
echo "\n";

echo "===BAZ===\n";
echo $sxe->baz;
echo "\n";

echo "===BAZ0===\n";
echo $sxe->baz[0];
echo "\n";

echo "===BAZ1===\n";
print $sxe->baz[1];
echo "\n";
?>
===DONE===
--EXPECT--
===BAR===
bar
===BAZ===
Array
===BAZ0===
baz1
===BAZ1===
baz2
===DONE===

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