public function testGetCurrentDateTimeWhenNothingSet() { $this->assertEquals(null, $this->dateTimeForm->getDateTime(), 'time is null when nothing is set'); $this->assertEquals(null, $this->dateTimeForm->getValue(), 'forms getValue method also returns null'); }
/** * Returns a PHP DateTime object. * * @return \DateTime * * @since 2.0.0 */ public function getDateTime() { return $this->datetime->getDateTime(); }
/** * @expectedException InvalidArgumentException */ function testGetDateTimeDateInvalid() { $elem = new DateTime('DTSTART', 'bla'); $dt = $elem->getDateTime(); }