コード例 #1
0
 public function testGetSecond()
 {
     $calendar = new Calendar();
     $second = $calendar->getSecond(new \DateTime('2012-01-01 17:23:49'));
     $this->assertInstanceOf('CalendR\\Period\\Second', $second);
     $second = $calendar->getSecond(2012, 1, 1, 17, 23, 49);
     $this->assertInstanceOf('CalendR\\Period\\Second', $second);
 }