From 7c29913f89d0f16f63c4e457e1a232df6e51e905 Mon Sep 17 00:00:00 2001 From: rojaro <> Date: Tue, 10 May 2011 17:58:37 +0000 Subject: php 5.3 compatibility fix --- tests/simple_unit/Soap/SoapTestCase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/simple_unit/Soap/SoapTestCase.php') diff --git a/tests/simple_unit/Soap/SoapTestCase.php b/tests/simple_unit/Soap/SoapTestCase.php index 78a6875b..d297ce41 100644 --- a/tests/simple_unit/Soap/SoapTestCase.php +++ b/tests/simple_unit/Soap/SoapTestCase.php @@ -21,7 +21,7 @@ class SoapTestCase extends UnitTestCase { $result = $this->getClient()->getContacts(); $this->assertEqual(count($result), 1); - $obj = $result[0]; + $obj = $result->Contact; $this->assertEqual($obj->name, "me"); $this->assertEqual($obj->id, 1); $this->assertEqual($obj->address->street, "sesamstreet"); @@ -88,4 +88,4 @@ class SoapTestCase extends UnitTestCase } } -?> \ No newline at end of file +?> -- cgit v1.2.3