summaryrefslogtreecommitdiff
path: root/tests/unit/Soap
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2016-03-29 09:24:08 +0200
committerFabio Bas <ctrlaltca@gmail.com>2016-03-29 09:24:08 +0200
commit70e305a918fcf193009831d4e89aa8c386df3dc4 (patch)
tree8cc49f253f29636ddd623aa2c2b98835300604f0 /tests/unit/Soap
parent55df8dac44f54a305e8bd7e50ef63f76725d2333 (diff)
Ported / fixed most old tests
Diffstat (limited to 'tests/unit/Soap')
-rw-r--r--tests/unit/Soap/SoapTest.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/unit/Soap/SoapTest.php b/tests/unit/Soap/SoapTest.php
index 6d4505d6..994c1175 100644
--- a/tests/unit/Soap/SoapTest.php
+++ b/tests/unit/Soap/SoapTest.php
@@ -23,15 +23,15 @@ class SoapTestCase extends PHPUnit_Framework_TestCase
function testContactArray()
{
$result = $this->getClient()->getContacts();
- $this->assertEqual(count($result), 1);
+ $this->assertEquals(count($result), 1);
$obj = $result->Contact;
- $this->assertEqual($obj->name, "me");
- $this->assertEqual($obj->id, 1);
- $this->assertEqual($obj->address->street, "sesamstreet");
+ $this->assertEquals($obj->name, "me");
+ $this->assertEquals($obj->id, 1);
+ $this->assertEquals($obj->address->street, "sesamstreet");
$this->assertNull($obj->address->nr);
$this->assertNull($obj->address->zipcode);
- $this->assertEqual($obj->address->city, "sesamcity");
- $this->assertEqual($obj->email, "me@you.com");
+ $this->assertEquals($obj->address->city, "sesamcity");
+ $this->assertEquals($obj->email, "me@you.com");
}
function testGetContactThrowsException()
@@ -67,14 +67,14 @@ class SoapTestCase extends PHPUnit_Framework_TestCase
{
$result = $this->getClient()>getList();
$expected = array(array(1,2), array("12", 1.2));
- $this->assertEqual($result, $expected);
+ $this->assertEquals($result, $expected);
}
function testEmptyArray()
{
$result = $this->getClient()->getEmptyArray();
$this->assertTrue(is_array($result));
- $this->assertEqual(count($result), 0);
+ $this->assertEquals(count($result), 0);
}
function testUnknownFunctionThrowsException()