ratio() public static méthode

public static ratio ( float $threshold )
$threshold float from 0.0 to 1.0
 protected function setUp()
 {
     $this->listener = MinimumEvaluations::ratio(0.5);
 }
Exemple #2
0
 /**
  * @param float  from 0.0 to 1.0
  * @return self
  */
 protected function minimumEvaluationRatio($ratio)
 {
     $this->filterOutListenersOfClass('Eris\\Listener\\MinimumEvaluations');
     $this->listeners[] = Listener\MinimumEvaluations::ratio($ratio);
     return $this;
 }