public function testGetValue() { $_POST['form'] = 'datefield'; $_POST['date'] = '12/10/2009'; $this->assertEquals('12/10/2009', $this->txtDate->getValue()); $_POST['date'] = array('foo', 'bar'); $this->assertEquals('Array', $this->txtDate->getValue()); }