public function chance($chance) { $this->chance = (int) $chance; return $this; }
public function test_that_a_chance_variable_can_be_set() { $e = new Experiment('test experiment'); $e->chance(50); $this->assertEquals(50, $e->getChance()); }