コード例 #1
0
ファイル: HebrewStringParser.php プロジェクト: kfirba/hebdate
 /**
  * Swap the word representation with numeric's.
  *
  * @return $this
  */
 protected function swap()
 {
     $this->date[0] = self::dayLookup[$this->date[0]];
     $this->date[1] = self::monthLookup[$this->date[1]];
     $year = $this->numerology->sum($this->date[2], true);
     $this->date[2] = $year < 5000 ? 5000 + $year : $year;
     return $this->date;
 }
コード例 #2
0
 /**
  * @test
  * @expectedException InvalidArgumentException
  */
 public function it_should_throw_an_exception_given_a_bad_argument()
 {
     $this->numerology->sum('Englis H');
 }