/** * Gets the random data generator. * * @return \Drupal\Component\Utility\Random */ protected static function getRandom() { if (!static::$random) { static::$random = new Random(); } return static::$random; }
public static function setUpBeforeClass() { // each test case has a different random, avoid false positive static::$random = rand(); }