diff options
| author | Pedro Magalhães <mail@pmmaga.net> | 2016-11-20 18:37:06 +0100 |
|---|---|---|
| committer | Nikita Popov <nikic@php.net> | 2016-11-20 21:11:53 +0100 |
| commit | 617dcf1b37ed43bba35e5f720383addb8ae7c562 (patch) | |
| tree | cc91184a5c662ad5a3715e214edaed37fbcb90c2 /ext/simplexml/tests | |
| parent | 9c5af4e4cb2f1cadc659542dad8967e9fd05f1d4 (diff) | |
| download | php-git-617dcf1b37ed43bba35e5f720383addb8ae7c562.tar.gz | |
Remove the binary cast from unrelated tests
Diffstat (limited to 'ext/simplexml/tests')
| -rw-r--r-- | ext/simplexml/tests/bug37386.phpt | 2 | ||||
| -rw-r--r-- | ext/simplexml/tests/sxe_001.phpt | 2 | ||||
| -rw-r--r-- | ext/simplexml/tests/sxe_002.phpt | 2 | ||||
| -rw-r--r-- | ext/simplexml/tests/sxe_003.phpt | 2 | ||||
| -rw-r--r-- | ext/simplexml/tests/sxe_004.phpt | 2 | ||||
| -rw-r--r-- | ext/simplexml/tests/sxe_005.phpt | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/ext/simplexml/tests/bug37386.phpt b/ext/simplexml/tests/bug37386.phpt index cf86906137..06b69c4705 100644 --- a/ext/simplexml/tests/bug37386.phpt +++ b/ext/simplexml/tests/bug37386.phpt @@ -5,7 +5,7 @@ Bug #39760 (autocreating element doesn't assign value to first node) --FILE-- <?php -$sx1 = new SimpleXMLElement((binary)"<root />"); +$sx1 = new SimpleXMLElement("<root />"); $sx1->node[0] = 'node1'; $sx1->node[1] = 'node2'; diff --git a/ext/simplexml/tests/sxe_001.phpt b/ext/simplexml/tests/sxe_001.phpt index bb93eea076..be293efb39 100644 --- a/ext/simplexml/tests/sxe_001.phpt +++ b/ext/simplexml/tests/sxe_001.phpt @@ -25,7 +25,7 @@ $xml =<<<EOF </sxe> EOF; -var_dump(simplexml_load_string((binary)$xml, 'SimpleXMLIterator')); +var_dump(simplexml_load_string($xml, 'SimpleXMLIterator')); ?> ===DONE=== diff --git a/ext/simplexml/tests/sxe_002.phpt b/ext/simplexml/tests/sxe_002.phpt index b937b011d0..aff3f83844 100644 --- a/ext/simplexml/tests/sxe_002.phpt +++ b/ext/simplexml/tests/sxe_002.phpt @@ -35,7 +35,7 @@ $xml =<<<EOF </sxe> EOF; -$sxe = simplexml_load_string((binary)$xml, 'SimpleXMLIterator'); +$sxe = simplexml_load_string($xml, 'SimpleXMLIterator'); foreach(new RecursiveIteratorIterator($sxe, 1) as $name => $data) { var_dump($name); diff --git a/ext/simplexml/tests/sxe_003.phpt b/ext/simplexml/tests/sxe_003.phpt index 58c7523160..8a45071dd2 100644 --- a/ext/simplexml/tests/sxe_003.phpt +++ b/ext/simplexml/tests/sxe_003.phpt @@ -35,7 +35,7 @@ $xml =<<<EOF </sxe> EOF; -$sxe = simplexml_load_string((binary)$xml, 'SimpleXMLIterator'); +$sxe = simplexml_load_string($xml, 'SimpleXMLIterator'); foreach($sxe->getChildren() as $name => $data) { var_dump($name); diff --git a/ext/simplexml/tests/sxe_004.phpt b/ext/simplexml/tests/sxe_004.phpt index 20431de8be..ac4bcd8bf7 100644 --- a/ext/simplexml/tests/sxe_004.phpt +++ b/ext/simplexml/tests/sxe_004.phpt @@ -74,7 +74,7 @@ class SXETest extends SimpleXMLIterator } } -$sxe = new SXETest((binary)$xml); +$sxe = new SXETest($xml); $rit = new RecursiveIteratorIterator($sxe, RecursiveIteratorIterator::SELF_FIRST); foreach($rit as $data) { diff --git a/ext/simplexml/tests/sxe_005.phpt b/ext/simplexml/tests/sxe_005.phpt index 183d351166..8763085a09 100644 --- a/ext/simplexml/tests/sxe_005.phpt +++ b/ext/simplexml/tests/sxe_005.phpt @@ -26,7 +26,7 @@ class SXETest extends SimpleXMLIterator } } -$sxe = new SXETest((binary)$xml); +$sxe = new SXETest($xml); var_dump(count($sxe)); var_dump(count($sxe->elem1)); |
