hasFeatureFlag() public static method

public static hasFeatureFlag ( string $scope, string $flag, string $version = self::VERSION_DEFAULT ) : boolean
$scope string
$flag string
$version string
return boolean
コード例 #1
0
 /**
  * @param array $versionedValues
  * @param string $version
  * @param mixed $flag
  * @param mixed $expected
  * @test
  * @dataProvider getRegisterAndRetrieveFeatureFlagTestValues
  */
 public function testRegisterAndRetieveFeatureFlag(array $versionedValues, $version, $flag, $expected)
 {
     CompatibilityRegistry::registerFeatureFlags($scope, $versionedValues, FALSE);
     $this->assertEquals($expected, CompatibilityRegistry::hasFeatureFlag($scope, $flag, $version));
 }