summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/simple_unit/Soap/SoapTestCase.php4
1 files changed, 2 insertions, 2 deletions
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
+?>