public function testGetReadResultObject() { $client = $this->getClient('person'); $ripe = new WebService($client); $person = new Person('FOO-TEST'); $person = $ripe->read($person); $this->assertInstanceOf('Dormilich\\WebService\\RIPE\\RPSL\\Person', $person); $this->assertCount(1, $ripe->getAllResults()); $this->assertEquals('FOO-TEST', $person->getPrimaryKey()); $this->assertEquals('John Smith', $person['person']); $this->assertEquals(["Example, Ltd.", "Road to Mandalay 1", "1234 Gareth", "Aventuria"], $person['address']); $this->assertEquals(["+0 1234 123456"], $person['phone']); $this->assertEquals(["+0 1234 123457"], $person['fax-no']); $this->assertEquals(["*****@*****.**"], $person['e-mail']); $this->assertEquals("FOO-TEST", $person['nic-hdl']); $this->assertEquals(["FOO-MNT"], $person['mnt-by']); $this->assertEquals("1970-01-01T00:00:00Z", $person['created']); $this->assertEquals("1970-01-01T00:00:00Z", $person['last-modified']); $this->assertEquals("RIPE", $person['source']); }