public function wkst($weekDay)
{
if (Valid::weekDay($weekDay)) {
$this->wkst = strtolower($weekDay);
return $this;
}
throw new \InvalidArgumentException("wkst: Accepts " . rtrim(implode(Valid::$weekDays, ", "), ","));
}
/** * @expectedException InvalidArgumentException */ public function testInvalidWkst() { $test = new When(); $test->wkst('va'); }