コード例 #1
0
ファイル: MonthTest.php プロジェクト: phellow/date
 /**
  * @depends testGetYear
  * @expectedException \InvalidArgumentException
  */
 public function testSubYearInvalid()
 {
     $month = new Month(new \DateTime('1987-06-18'));
     $month->subYear(-1);
 }