aboutsummaryrefslogtreecommitdiff
path: root/tests/Api/OpenSearchTest.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2013-03-17 22:22:16 +0100
committerChristian Weiske <cweiske@cweiske.de>2013-03-17 22:22:16 +0100
commitd0ed9adec8084b193c3429b664a408b2a3f6b71c (patch)
tree4aac4ba43ff3bcfb4f4994ed126638f99e68a9bf /tests/Api/OpenSearchTest.php
parentdefe7c0035061b2e46095dca5ed72b209ad16852 (diff)
downloadsemanticscuttle-d0ed9adec8084b193c3429b664a408b2a3f6b71c.tar.gz
semanticscuttle-d0ed9adec8084b193c3429b664a408b2a3f6b71c.tar.bz2
remove php4-style object reference passing
Diffstat (limited to 'tests/Api/OpenSearchTest.php')
-rw-r--r--tests/Api/OpenSearchTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Api/OpenSearchTest.php b/tests/Api/OpenSearchTest.php
index f438b46..09166da 100644
--- a/tests/Api/OpenSearchTest.php
+++ b/tests/Api/OpenSearchTest.php
@@ -12,7 +12,7 @@ class Api_OpenSearchTest extends TestBaseApi
$xhtml = $req->send()->getBody();
$xml = simplexml_load_string($xhtml);
- $xml->registerXPathNamespace('h', reset($xml->getDocNamespaces()));
+ $xml->registerXPathNamespace('h', rreset($xml->getDocNamespaces()));
$this->assertInstanceOf(
'SimpleXMLElement', $xml,
@@ -58,7 +58,7 @@ class Api_OpenSearchTest extends TestBaseApi
{
$xml = $this->getRequest('api/opensearch.php')->send()->getBody();
$x = simplexml_load_string($xml);
- $x->registerXPathNamespace('os', reset($x->getDocNamespaces()));
+ $x->registerXPathNamespace('os', rreset($x->getDocNamespaces()));
$arElements = $x->xpath('//os:Url[@type="text/html"]');
$this->assertEquals(