@@ -1742,44 +1742,44 @@ public function testIsFeatureEnabledGivenInvalidDataFile()
17421742
17431743 public function testIsFeatureEnabledGivenInvalidArguments ()
17441744 {
1745- // should return null and log a message when feature flag key is empty
1745+ // should return false and log a message when feature flag key is empty
17461746 $ this ->loggerMock ->expects ($ this ->at (0 ))
17471747 ->method ('log ' )
17481748 ->with (Logger::ERROR , "Feature Flag key cannot be empty. " );
17491749
1750- $ this ->assertSame ($ this ->optimizelyObject ->isFeatureEnabled ("" , "user_id " ), null );
1750+ $ this ->assertSame ($ this ->optimizelyObject ->isFeatureEnabled ("" , "user_id " ), false );
17511751
1752- // should return null and log a message when feature flag key is null
1752+ // should return false and log a message when feature flag key is null
17531753 $ this ->loggerMock ->expects ($ this ->at (0 ))
17541754 ->method ('log ' )
17551755 ->with (Logger::ERROR , "Feature Flag key cannot be empty. " );
17561756
1757- $ this ->assertSame ($ this ->optimizelyObject ->isFeatureEnabled (null , "user_id " ), null );
1757+ $ this ->assertSame ($ this ->optimizelyObject ->isFeatureEnabled (null , "user_id " ), false );
17581758
1759- // should return null and log a message when user id is empty
1759+ // should return false and log a message when user id is empty
17601760 $ this ->loggerMock ->expects ($ this ->at (0 ))
17611761 ->method ('log ' )
17621762 ->with (Logger::ERROR , "User ID cannot be empty. " );
17631763
1764- $ this ->assertSame ($ this ->optimizelyObject ->isFeatureEnabled ("boolean_feature " , "" ), null );
1764+ $ this ->assertSame ($ this ->optimizelyObject ->isFeatureEnabled ("boolean_feature " , "" ), false );
17651765
1766- // should return null and log a message when user id is null
1766+ // should return false and log a message when user id is null
17671767 $ this ->loggerMock ->expects ($ this ->at (0 ))
17681768 ->method ('log ' )
17691769 ->with (Logger::ERROR , "User ID cannot be empty. " );
17701770
1771- $ this ->assertSame ($ this ->optimizelyObject ->isFeatureEnabled ("boolean_feature " , null ), null );
1771+ $ this ->assertSame ($ this ->optimizelyObject ->isFeatureEnabled ("boolean_feature " , null ), false );
17721772 }
17731773
17741774 public function testIsFeatureEnabledGivenFeatureFlagNotFound ()
17751775 {
17761776 $ feature_key = "abcd " ; // Any string that is not a feature flag key in the data file
17771777
1778- //should return null and log a message when no feature flag found against a valid feature key
1778+ //should return false and log a message when no feature flag found against a valid feature key
17791779 $ this ->loggerMock ->expects ($ this ->at (0 ))
17801780 ->method ('log ' )
17811781 ->with (Logger::ERROR , "FeatureFlag Key \"{$ feature_key }\" is not in datafile. " );
1782- $ this ->assertSame ($ this ->optimizelyObject ->isFeatureEnabled ($ feature_key , "user_id " ), null );
1782+ $ this ->assertSame ($ this ->optimizelyObject ->isFeatureEnabled ($ feature_key , "user_id " ), false );
17831783 }
17841784
17851785 public function testIsFeatureEnabledGivenInvalidFeatureFlag ()
@@ -1798,8 +1798,8 @@ public function testIsFeatureEnabledGivenInvalidFeatureFlag()
17981798 $ experimentIds [] = '122241 ' ;
17991799 $ feature_flag ->setExperimentIds ($ experimentIds );
18001800
1801- //should return null when feature flag is invalid
1802- $ this ->assertSame ($ optimizelyObj ->isFeatureEnabled ('mutex_group_feature ' , "user_id " ), null );
1801+ //should return false when feature flag is invalid
1802+ $ this ->assertSame ($ optimizelyObj ->isFeatureEnabled ('mutex_group_feature ' , "user_id " ), false );
18031803 }
18041804
18051805 public function testIsFeatureEnabledGivenFeatureFlagIsNotEnabledForUser ()
@@ -2124,7 +2124,7 @@ public function testGetFeatureVariableValueForTypeGivenFeatureFlagIsEnabledForUs
21242124 public function testGetFeatureVariableValueForTypeGivenFeatureFlagIsEnabledForUserAndVariableNotInVariation ()
21252125 {
21262126 // should return default value
2127-
2127+
21282128 $ decisionServiceMock = $ this ->getMockBuilder (DecisionService::class)
21292129 ->setConstructorArgs (array ($ this ->loggerMock , $ this ->projectConfig ))
21302130 ->setMethods (array ('getVariationForFeature ' ))
0 commit comments