Esempio n. 1
0
 /**
  * Given a set of enumerated values, one should be randomly selected.
  */
 public function testFluffEnum()
 {
     // Create an enumeration of possible values
     $enum = array('value1', 'value2', 'value3');
     // Create fluff by selecting one of the values from the enum
     $random_value = Fluffer::fluffEnum($enum);
     // The random value should have come from the enumeration
     $this->assertContains($random_value, $enum);
 }