[Pkg-owncloud-commits] [php-sabredav] 07/42: This should ensure that hhvm doesn't trip over this unittest.

David Prévot taffit at moszumanska.debian.org
Wed Jul 23 16:41:24 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabredav.

commit 21a529e2c45fc6904aee7a6892b65e5fc0c2ae92
Author: Evert Pot <me at evertpot.com>
Date:   Mon May 26 00:40:51 2014 -0400

    This should ensure that hhvm doesn't trip over this unittest.
---
 tests/Sabre/DAV/Mount/PluginTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/Sabre/DAV/Mount/PluginTest.php b/tests/Sabre/DAV/Mount/PluginTest.php
index 85837ed..e641579 100644
--- a/tests/Sabre/DAV/Mount/PluginTest.php
+++ b/tests/Sabre/DAV/Mount/PluginTest.php
@@ -47,7 +47,7 @@ class PluginTest extends DAV\AbstractServer {
         $this->assertEquals(200, $this->response->status);
 
         $xml = simplexml_load_string($this->response->body);
-        $this->assertTrue($xml==true,'Response was not a valid xml document. The list of errors:' . print_r(libxml_get_errors(),true) . '. xml body: ' . $this->response->body . '. What type we got: ' . gettype($xml) . ' class, if object: ' . get_class($xml));
+        $this->assertInstanceOf('SimpleXMLElement',$xml, 'Response was not a valid xml document. The list of errors:' . print_r(libxml_get_errors(),true) . '. xml body: ' . $this->response->body . '. What type we got: ' . gettype($xml) . ' class, if object: ' . get_class($xml));
 
         $xml->registerXPathNamespace('dm','http://purl.org/NET/webdav/mount');
         $url = $xml->xpath('//dm:url');

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list