Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Test can get value from Date Time Select Form Element
Browse files Browse the repository at this point in the history
  • Loading branch information
richardjennings committed Jun 30, 2013
1 parent 5e5fc79 commit e93fa7c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/ZendTest/Form/Element/DateTimeSelectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ public function testCanSetDateFromString()
$this->assertEquals('05', $element->getSecondElement()->getValue());
}

public function testCanGetValue()
{
$element = new DateTimeSelectElement();
$element->setValue(new DateTime('2012-09-24 03:04:05'));

$this->assertEquals('2012-09-24 03:04:05', $element->getValue());
}

/**
* @expectedException \Zend\Form\Exception\InvalidArgumentException
*/
Expand Down

0 comments on commit e93fa7c

Please sign in to comment.