]> granicus.if.org Git - php/commitdiff
Improve test portabilty
authorChristopher Jones <sixd@php.net>
Fri, 5 Aug 2011 22:18:50 +0000 (22:18 +0000)
committerChristopher Jones <sixd@php.net>
Fri, 5 Aug 2011 22:18:50 +0000 (22:18 +0000)
ext/oci8/tests/bug37220.phpt
ext/oci8/tests/xmltype_02.phpt

index 8d59644b8eadab0cc516fae035144ad554ce1314..fd91dc73d620787a374896471bb7c5bd6bcd2284 100644 (file)
@@ -43,7 +43,7 @@ oci_execute($stmt);
 
 while ($row = oci_fetch_array($stmt, OCI_ASSOC+OCI_RETURN_NULLS)) {
        foreach ($row as $item) {
-               echo $item."\n";
+               echo trim($item)."\n";
        }
        echo "\n";
 }
index 5ac294102e962c965089f2c0daa27a4abe826e1c..28e9401baf4857c8e4347f25aaa171c66b036694 100644 (file)
@@ -164,18 +164,18 @@ object(SimpleXMLElement)#%d (10) {
   string(2) "10"
 }
 Test 3: Update changes using a temporary CLOB
-string(331) "<?xml version="1.0"?>
+string(%d) "<?xml version="1.0"?>
 <Warehouse>
-<WarehouseId>1</WarehouseId>
-<WarehouseName>Southlake, Texas</WarehouseName>
-<Building>Owned</Building>
-<Area>25000</Area>
-<Docks>1</Docks>
-<DockType>Rear load</DockType>
-<WaterAccess>true</WaterAccess>
-<RailAccess>N</RailAccess>
-<Parking>Street</Parking>
-<VClearance>10</VClearance>
+%sWarehouseId>1</WarehouseId>
+%sWarehouseName>Southlake, Texas</WarehouseName>
+%sBuilding>Owned</Building>
+%sArea>25000</Area>
+%sDocks>1</Docks>
+%sDockType>Rear load</DockType>
+%sWaterAccess>true</WaterAccess>
+%sRailAccess>N</RailAccess>
+%sParking>Street</Parking>
+%sVClearance>10</VClearance>
 </Warehouse>
 "
 ===DONE===
\ No newline at end of file