xref: /php-uv/tests/001-constants.phpt (revision 2aecc360)
1--TEST--
2Check for php-uv constants
3--FILE--
4<?php
5
6if (!defined("UV::CHANGE")) {
7  echo "FAILED UV::CHANGE" . PHP_EOL;
8}
9if (!defined("UV::RENAME")) {
10  echo "FAILED UV::RENAME" . PHP_EOL;
11}
12if (!defined("UV::O_RDONLY")) {
13  echo "FAILED UV::O_RDONLY" . PHP_EOL;
14}
15if (!defined("UV::O_WRONLY")) {
16  echo "FAILED UV::O_WRONLY" . PHP_EOL;
17}
18if (!defined("UV::O_RDWR")) {
19  echo "FAILED UV::O_RDWR" . PHP_EOL;
20}
21if (!defined("UV::O_CREAT")) {
22  echo "FAILED UV::O_CREAT" . PHP_EOL;
23}
24if (!defined("UV::O_EXCL")) {
25  echo "FAILED UV::O_EXCL" . PHP_EOL;
26}
27if (!defined("UV::O_TRUNC")) {
28  echo "FAILED UV::O_TRUNC" . PHP_EOL;
29}
30if (!defined("UV::O_APPEND")) {
31  echo "FAILED UV::O_APPEND" . PHP_EOL;
32}
33if (!defined("UV::O_NOCTTY")) {
34  echo "FAILED UV::O_NOCTTY" . PHP_EOL;
35}
36if (!defined("UV::S_IRWXU")) {
37  echo "FAILED UV::S_IRWXU" . PHP_EOL;
38}
39if (!defined("UV::S_IRUSR")) {
40  echo "FAILED UV::S_IRUSR" . PHP_EOL;
41}
42if (!defined("UV::S_IWUSR")) {
43  echo "FAILED UV::S_IWUSR" . PHP_EOL;
44}
45if (!defined("UV::S_IXUSR")) {
46  echo "FAILED UV::S_IXUSR" . PHP_EOL;
47}
48if (!defined("UV::S_IRWXG")) {
49  echo "FAILED UV::S_IRWXG" . PHP_EOL;
50}
51if (!defined("UV::S_IRGRP")) {
52  echo "FAILED UV::S_IRGRP" . PHP_EOL;
53}
54if (!defined("UV::S_IWGRP")) {
55  echo "FAILED UV::S_IWGRP" . PHP_EOL;
56}
57if (!defined("UV::S_IXGRP")) {
58  echo "FAILED UV::S_IXGRP" . PHP_EOL;
59}
60if (!defined("UV::S_IRWXO")) {
61  echo "FAILED UV::S_IRWXO" . PHP_EOL;
62}
63if (!defined("UV::S_IROTH")) {
64  echo "FAILED UV::S_IROTH" . PHP_EOL;
65}
66if (!defined("UV::S_IWOTH")) {
67  echo "FAILED UV::S_IWOTH" . PHP_EOL;
68}
69if (!defined("UV::S_IXOTH")) {
70  echo "FAILED UV::S_IXOTH" . PHP_EOL;
71}
72if (!defined("UV::AF_INET")) {
73  echo "FAILED UV::AF_INET" . PHP_EOL;
74}
75if (!defined("UV::AF_INET6")) {
76  echo "FAILED UV::AF_INET6" . PHP_EOL;
77}
78if (!defined("UV::AF_UNSPEC")) {
79  echo "FAILED UV::AF_UNSPEC" . PHP_EOL;
80}
81if (!defined("UV::LEAVE_GROUP")) {
82  echo "FAILED UV::LEAVE_GROUP" . PHP_EOL;
83}
84if (!defined("UV::JOIN_GROUP")) {
85  echo "FAILED UV::JOIN_GROUP" . PHP_EOL;
86}
87
88
89--EXPECT--
90