コード例 #1
0
ファイル: DateTimeLocalTest.php プロジェクト: adamwathan/form
 public function testDateTimeValuesAreBoundAsFormattedStrings()
 {
     $dateTimeLocal = new DateTimeLocal('dob');
     $dateTimeLocal->value(new DateTime('12-04-1988 10:33'));
     $expected = '<input type="datetime-local" name="dob" value="1988-04-12T10:33">';
     $this->assertSame($expected, $dateTimeLocal->render());
 }