public function testReturnsRightJSONObject() { $this->assertEquals($o = new \ChristianBudde\Part\controller\json\MailAddressObjectImpl($this->address), $this->address->jsonObjectSerialize()); $this->assertEquals($o->jsonSerialize(), $this->address->jsonSerialize()); }