public function testValidationDateValid($date, $format)
{
$validation = new Phalcon\Validation();
$validation->add('date', new Date(array('format' => $format)));
$messages = $validation->validate(array('date' => $date));
$this->assertEquals(count($messages), 0);
}