/** * Checks to see if we have a datetype type, if we do * we generate the current date & time. * * @access public * @param String $dataType The fixtures type * @param int $field The field we want to check. * @param PHPUnit_Fixture $obj The object of which we want to assign to. * */ static function aDateTime($dateType, $field, $obj) { if ('datetime' === $dateType) { $obj->setResult($field, date(DATE_RFC822)); } }