"Fossies" - the Fresh Open Source Software Archive

Member "php-7.4.1/ext/simplexml/tests/001-mb.phpt" (17 Dec 2019, 831 Bytes) of package /linux/www/php-7.4.1.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "001-mb.phpt": 7.3.12_vs_7.4.0.

    1 --TEST--
    2 SimpleXML: Simple document
    3 --SKIPIF--
    4 <?php if (!extension_loaded("simplexml")) print "skip"; ?>
    5 --FILE--
    6 <?php
    7 
    8 var_dump(simplexml_load_file(__DIR__.'/sxe私はガラスを食べられます.xml'));
    9 
   10 ?>
   11 ===DONE===
   12 --EXPECTF--
   13 object(SimpleXMLElement)#%d (2) {
   14   ["@attributes"]=>
   15   array(1) {
   16     ["id"]=>
   17     string(5) "elem1"
   18   }
   19   ["elem1"]=>
   20   object(SimpleXMLElement)#%d (3) {
   21     ["@attributes"]=>
   22     array(1) {
   23       ["attr1"]=>
   24       string(5) "first"
   25     }
   26     ["comment"]=>
   27     object(SimpleXMLElement)#%d (0) {
   28     }
   29     ["elem2"]=>
   30     object(SimpleXMLElement)#%d (1) {
   31       ["elem3"]=>
   32       object(SimpleXMLElement)#%d (1) {
   33         ["elem4"]=>
   34         object(SimpleXMLElement)#%d (1) {
   35           ["test"]=>
   36           object(SimpleXMLElement)#%d (0) {
   37           }
   38         }
   39       }
   40     }
   41   }
   42 }
   43 ===DONE===