/** * @dataProvider unpackSettingsProvider */ public function testUnpackSettings(array $settings, array $expectedUnpackedSettings) { $unpackedSettings = []; Utils::unpackSettings($settings, $unpackedSettings); $this->assertEquals($expectedUnpackedSettings, $unpackedSettings); }
/** * Add settings * * @param array $settings The settings * * @return self */ public function settings(array $settings) { $this->pSettings[] = Utils::getUnpackedSettings($settings); return $this; }