@@ -682,7 +682,7 @@ public function testGetVariationForFeatureExperimentGivenNonMutexGroupAndUserIsB
682682 ->will ($ this ->returnValue ($ variation ));
683683
684684 $ feature_flag = $ this ->config ->getFeatureFlagFromKey ('multi_variate_feature ' );
685- $ expected_decision = new FeatureDecision ($ experiment-> getId () , $ variation-> getId () , FeatureDecision::DECISION_SOURCE_EXPERIMENT );
685+ $ expected_decision = new FeatureDecision ($ experiment , $ variation , FeatureDecision::DECISION_SOURCE_EXPERIMENT );
686686
687687 $ this ->loggerMock ->expects ($ this ->at (0 ))
688688 ->method ('log ' )
@@ -708,7 +708,7 @@ public function testGetVariationForFeatureExperimentGivenMutexGroupAndUserIsBuck
708708
709709 $ mutex_exp = $ this ->config ->getExperimentFromKey ('group_experiment_1 ' );
710710 $ variation = $ mutex_exp ->getVariations ()[0 ];
711- $ expected_decision = new FeatureDecision ($ mutex_exp-> getId () , $ variation-> getId () , FeatureDecision::DECISION_SOURCE_EXPERIMENT );
711+ $ expected_decision = new FeatureDecision ($ mutex_exp , $ variation , FeatureDecision::DECISION_SOURCE_EXPERIMENT );
712712
713713 $ feature_flag = $ this ->config ->getFeatureFlagFromKey ('boolean_feature ' );
714714 $ this ->loggerMock ->expects ($ this ->at (0 ))
@@ -760,8 +760,8 @@ public function testGetVariationForFeatureWhenTheUserIsBucketedIntoFeatureExperi
760760 $ expected_experiment = $ this ->config ->getExperimentFromId ($ expected_experiment_id );
761761 $ expected_variation = $ expected_experiment ->getVariations ()[0 ];
762762 $ expected_decision = new FeatureDecision (
763- $ expected_experiment-> getId () ,
764- $ expected_variation-> getId () ,
763+ $ expected_experiment ,
764+ $ expected_variation ,
765765 FeatureDecision::DECISION_SOURCE_EXPERIMENT
766766 );
767767
@@ -789,8 +789,8 @@ public function testGetVariationForFeatureWhenBucketedToFeatureRollout()
789789 $ experiment = $ rollout ->getExperiments ()[0 ];
790790 $ expected_variation = $ experiment ->getVariations ()[0 ];
791791 $ expected_decision = new FeatureDecision (
792- $ experiment-> getId () ,
793- $ expected_variation-> getId () ,
792+ $ experiment ,
793+ $ expected_variation ,
794794 FeatureDecision::DECISION_SOURCE_ROLLOUT
795795 );
796796
@@ -925,8 +925,8 @@ public function testGetVariationForFeatureRolloutWhenUserIsBucketedInTheTargetin
925925 $ experiment = $ rollout ->getExperiments ()[0 ];
926926 $ expected_variation = $ experiment ->getVariations ()[0 ];
927927 $ expected_decision = new FeatureDecision (
928- $ experiment-> getId () ,
929- $ expected_variation-> getId () ,
928+ $ experiment ,
929+ $ expected_variation ,
930930 FeatureDecision::DECISION_SOURCE_ROLLOUT
931931 );
932932
@@ -966,8 +966,8 @@ public function testGetVariationForFeatureRolloutWhenUserIsNotBucketedInTheTarge
966966 $ experiment2 = $ rollout ->getExperiments ()[2 ];
967967 $ expected_variation = $ experiment2 ->getVariations ()[0 ];
968968 $ expected_decision = new FeatureDecision (
969- $ experiment2-> getId () ,
970- $ expected_variation-> getId () ,
969+ $ experiment2 ,
970+ $ expected_variation ,
971971 FeatureDecision::DECISION_SOURCE_ROLLOUT
972972 );
973973
@@ -1074,8 +1074,8 @@ public function testGetVariationForFeatureRolloutWhenUserDoesNotQualifyForAnyTar
10741074 $ experiment2 = $ rollout ->getExperiments ()[2 ];
10751075 $ expected_variation = $ experiment2 ->getVariations ()[0 ];
10761076 $ expected_decision = new FeatureDecision (
1077- $ experiment2-> getId () ,
1078- $ expected_variation-> getId () ,
1077+ $ experiment2 ,
1078+ $ expected_variation ,
10791079 FeatureDecision::DECISION_SOURCE_ROLLOUT
10801080 );
10811081
0 commit comments