--TEST-- Test date_parse() function : error conditions --FILE-- ===DONE=== --EXPECTF-- *** Testing date_parse() : error conditions *** -- Testing date_parse() function with zero arguments -- Warning: date_parse() expects exactly 1 parameter, 0 given in %s on line %d bool(false) -- Testing date_parse() function with more than expected no. of arguments -- Warning: date_parse() expects exactly 1 parameter, 2 given in %s on line %d bool(false) -- Testing date_parse() function with unexpected characters in $date argument -- array(13) { [u"year"]=> bool(false) [u"month"]=> bool(false) [u"day"]=> bool(false) [u"hour"]=> int(10) [u"minute"]=> int(0) [u"second"]=> int(0) [u"fraction"]=> float(0) [u"warning_count"]=> int(1) [u"warnings"]=> array(1) { [4]=> unicode(29) "Double timezone specification" } [u"error_count"]=> int(7) [u"errors"]=> array(7) { [0]=> unicode(20) "Unexpected character" [1]=> unicode(47) "The timezone could not be found in the database" [3]=> unicode(20) "Unexpected character" [7]=> unicode(20) "Unexpected character" [8]=> unicode(29) "Double timezone specification" [17]=> unicode(20) "Unexpected character" [18]=> unicode(25) "Double time specification" } [u"is_localtime"]=> bool(true) [u"zone_type"]=> int(0) } ===DONE===