/** * try to get registry data * */ public function testGetRegistryData() { // get phone json $data = $this->_json->getRegistryData(); $this->assertGreaterThan(0, count($data['Phones']), 'more than 1 phone expected'); $this->assertGreaterThan(0, count($data['Phones'][0]['lines']), 'no lines attached'); $this->assertStringEndsWith('user phone', $data['Phones'][0]['description'], 'no description'); }