@@ -145,6 +145,7 @@ public function testInit()
145145 // Check variation key map
146146 $ variationKeyMap = new \ReflectionProperty (ProjectConfig::class, '_variationKeyMap ' );
147147 $ variationKeyMap ->setAccessible (true );
148+
148149 $ this ->assertEquals ([
149150 'test_experiment ' => [
150151 'control ' => $ this ->config ->getVariationFromKey ('test_experiment ' , 'control ' ),
@@ -179,6 +180,21 @@ public function testInit()
179180 'test_experiment_integer_feature ' => [
180181 'control ' => $ this ->config ->getVariationFromKey ('test_experiment_integer_feature ' , 'control ' ),
181182 'variation ' => $ this ->config ->getVariationFromKey ('test_experiment_integer_feature ' , 'variation ' )
183+ ],
184+ 'rollout_1_exp_1 ' => [
185+ '177771 ' => $ this ->config ->getVariationFromKey ('rollout_1_exp_1 ' , '177771 ' )
186+ ],
187+ 'rollout_1_exp_2 ' => [
188+ '177773 ' => $ this ->config ->getVariationFromKey ('rollout_1_exp_2 ' , '177773 ' )
189+ ],
190+ 'rollout_1_exp_3 ' => [
191+ '177778 ' => $ this ->config ->getVariationFromKey ('rollout_1_exp_3 ' , '177778 ' )
192+ ],
193+ 'rollout_2_exp_1 ' => [
194+ '177775 ' => $ this ->config ->getVariationFromKey ('rollout_2_exp_1 ' , '177775 ' )
195+ ],
196+ 'rollout_2_exp_2 ' => [
197+ '177780 ' => $ this ->config ->getVariationFromKey ('rollout_2_exp_2 ' , '177780 ' )
182198 ]
183199 ], $ variationKeyMap ->getValue ($ this ->config ));
184200
@@ -219,6 +235,21 @@ public function testInit()
219235 'test_experiment_integer_feature ' => [
220236 '122242 ' => $ this ->config ->getVariationFromId ('test_experiment_integer_feature ' , '122242 ' ),
221237 '122243 ' => $ this ->config ->getVariationFromId ('test_experiment_integer_feature ' , '122243 ' )
238+ ],
239+ 'rollout_1_exp_1 ' => [
240+ '177771 ' => $ this ->config ->getVariationFromId ('rollout_1_exp_1 ' , '177771 ' )
241+ ],
242+ 'rollout_1_exp_2 ' => [
243+ '177773 ' => $ this ->config ->getVariationFromId ('rollout_1_exp_2 ' , '177773 ' )
244+ ],
245+ 'rollout_1_exp_3 ' => [
246+ '177778 ' => $ this ->config ->getVariationFromId ('rollout_1_exp_3 ' , '177778 ' )
247+ ],
248+ 'rollout_2_exp_1 ' => [
249+ '177775 ' => $ this ->config ->getVariationFromId ('rollout_2_exp_1 ' , '177775 ' )
250+ ],
251+ 'rollout_2_exp_2 ' => [
252+ '177780 ' => $ this ->config ->getVariationFromId ('rollout_2_exp_2 ' , '177780 ' )
222253 ]
223254 ], $ variationIdMap ->getValue ($ this ->config ));
224255
0 commit comments