|
| 1 | +<?php |
| 2 | + |
| 3 | +require_once 'src/simplexml_dump.php'; |
| 4 | +require_once 'src/simplexml_tree.php'; |
| 5 | + |
| 6 | +class simplexml_dump_bootstrap extends PHPUnit_Framework_TestCase |
| 7 | +{ |
| 8 | + public function setUp() |
| 9 | + { |
| 10 | + $this->simpleXML = simplexml_load_string('<?xml version="1.0" standalone="yes"?> |
| 11 | + <movies> |
| 12 | + <movie> |
| 13 | + <title>PHP: Behind the Parser</title> |
| 14 | + <characters> |
| 15 | + <character> |
| 16 | + <name>Ms. Coder</name> |
| 17 | + <actor>Onlivia Actora</actor> |
| 18 | + </character> |
| 19 | + <character> |
| 20 | + <name>Mr. Coder</name> |
| 21 | + <actor>El ActÓr</actor> |
| 22 | + </character> |
| 23 | + </characters> |
| 24 | + <plot> |
| 25 | + So, this language. It\'s like, a programming language. |
| 26 | + Or is it a scripting language? All is revealed in this |
| 27 | + thrilling horror spoof of a documentary. |
| 28 | + </plot> |
| 29 | + <great-lines> |
| 30 | + <line>PHP solves all my web problems</line> |
| 31 | + </great-lines> |
| 32 | + <rating type="thumbs">7</rating> |
| 33 | + <rating type="stars">5</rating> |
| 34 | + </movie> |
| 35 | + </movies> |
| 36 | + '); |
| 37 | + |
| 38 | + $this->simpleXML_NS = simplexml_load_string('<?xml version="1.0" standalone="yes"?> |
| 39 | + <movies xmlns:test="https://github.com/IMSoP/simplexml_debug"> |
| 40 | + <test:movie> |
| 41 | + <test:title>PHP: Behind the Parser</test:title> |
| 42 | + <test:characters> |
| 43 | + <test:character> |
| 44 | + <test:name>Ms. Coder</test:name> |
| 45 | + <test:actor>Onlivia Actora</test:actor> |
| 46 | + </test:character> |
| 47 | + <test:character> |
| 48 | + <test:name>Mr. Coder</test:name> |
| 49 | + <test:actor>El ActÓr</test:actor> |
| 50 | + </test:character> |
| 51 | + </test:characters> |
| 52 | + <test:plot> |
| 53 | + So, this language. It\'s like, a programming language. |
| 54 | + Or is it a scripting language? All is revealed in this |
| 55 | + thrilling horror spoof of a documentary. |
| 56 | + </test:plot> |
| 57 | + <test:great-lines> |
| 58 | + <test:line>PHP solves all my web problems</test:line> |
| 59 | + </test:great-lines> |
| 60 | + <test:rating type="thumbs">7</test:rating> |
| 61 | + <test:rating type="stars">5</test:rating> |
| 62 | + </test:movie> |
| 63 | + </movies> |
| 64 | + '); |
| 65 | + } |
| 66 | +} |
| 67 | + |
| 68 | +?> |
0 commit comments