public function testIncompleteGroup() { $incomplete = array('id' => 'g-hhtr-8fe11690ee3f3b36705dd3f6ecb3dde3', 'name' => 'Crowleys Koffie Clan', 'description' => 'Iedereen een kopje koffie?', 'type' => 'NORMAL'); $this->entity = new Group(); $this->entity->parse($incomplete); // Is valid entity? $this->assertInstanceOf('HabboAPI\\Entities\\Group', $this->entity); $this->assertEquals('Iedereen een kopje koffie?', $this->entity->getDescription()); $this->assertNull($this->entity->getPrimaryColor()); }