When\When::byyearday PHP Method

byyearday() public method

public byyearday ( $byyrdaylist, $delimiter = "," )
    public function byyearday($byyrdaylist, $delimiter = ",")
    {
        if ($this->byyeardays = self::prepareItemsList($byyrdaylist, $delimiter, 'yearDayNum')) {
            return $this;
        }
        throw new \InvalidArgumentException("byyearday: Accepts positive and negative values between 1 and 366");
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @expectedException InvalidArgumentException
  */
 public function testInvalidByYearDay()
 {
     $test = new When();
     $test->byyearday(367);
 }