Exemplo n.º 1
0
 public function testParameterOrders()
 {
     $decider = new Decider('7704eb6eae8afb62bdcbd26ff1f1437e');
     $this->assertEquals($decider->chooseNumber(0, 1000), $decider->chooseNumber(1000), "Calling 'chooseNumber' without a \$lower bound should default it to 0");
     $this->assertEquals($decider->chooseNumber(0, 1000, 'salty'), $decider->chooseNumber(1000, 'salty'), "Calling 'chooseNumber' without a \$lower bound but with a salt should default it to 0");
 }