public function testDataTableCustomProperties() { $data = new DataTable('first', ValueType::STRING); $data->setCustomProperty('a', 'foo'); $properties = $data->getCustomProperties(); $this->assertTrue(is_array($properties), "properties must be an array"); $this->assertArrayHasKey('a', $properties, "properties[a] must exist"); $this->assertSame('foo', $data->getCustomProperty('a'), "getCustomProperty must return expected value"); }