Skip to content

Commit 6f46fa3

Browse files
committed
add test
1 parent e76cf84 commit 6f46fa3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
--TEST--
2+
Check that windows version constants are initialized
3+
--SKIPIF--
4+
<?php
5+
if (substr(PHP_OS, 0, 3) != 'WIN') {
6+
die('skip.. Windows only');
7+
}
8+
?>
9+
--FILE--
10+
<?php
11+
var_dump(PHP_WINDOWS_VERSION_MAJOR > 0, PHP_WINDOWS_VERSION_MAJOR, PHP_WINDOWS_VERSION_MINOR);
12+
?>
13+
==DONE==
14+
--EXPECTF--
15+
bool(true)
16+
int(%d)
17+
int(%d)
18+
==DONE==

0 commit comments

Comments
 (0)