File: DateTimeInterface_constants.phpt

package info (click to toggle)
php8.4 8.4.16-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 211,276 kB
  • sloc: ansic: 1,176,142; php: 35,419; sh: 11,964; cpp: 7,208; pascal: 4,951; javascript: 3,091; asm: 2,817; yacc: 2,411; makefile: 696; xml: 446; python: 301; awk: 148
file content (38 lines) | stat: -rw-r--r-- 1,050 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--TEST--
DateTimeInterface constants
--FILE--
<?php

var_dump(
    DATE_ATOM             === DateTimeInterface::ATOM,
    DATE_COOKIE           === DateTimeInterface::COOKIE,
    DATE_ISO8601          === DateTimeInterface::ISO8601,
    DATE_ISO8601_EXPANDED === DateTimeInterface::ISO8601_EXPANDED,
    DATE_RFC822           === DateTimeInterface::RFC822,
    DATE_RFC850           === DateTimeInterface::RFC850,
    DATE_RFC1036          === DateTimeInterface::RFC1036,
    DATE_RFC1123          === DateTimeInterface::RFC1123,
    DATE_RFC7231          === DateTimeInterface::RFC7231,
    DATE_RFC2822          === DateTimeInterface::RFC2822,
    DATE_RFC3339          === DateTimeInterface::RFC3339,
    DATE_RFC3339_EXTENDED === DateTimeInterface::RFC3339_EXTENDED,
    DATE_RSS              === DateTimeInterface::RSS,
    DATE_W3C              === DateTimeInterface::W3C
);

?>
--EXPECT--
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)