/** * test getCorrectedPostedDate() */ public function testCorrectPostedDate() { $_POST['test'] = '1-8-2013'; $input = new DateInput('test'); $this->assertEquals('01-08-2013', $input->getPosted()); $input->setDateFormat('j-n-Y'); $this->assertEquals('1-8-2013', $input->getPosted()); }