]> granicus.if.org Git - php/commitdiff
add test
authorAnatol Belski <ab@php.net>
Sun, 31 May 2015 16:13:33 +0000 (18:13 +0200)
committerAnatol Belski <ab@php.net>
Sun, 31 May 2015 16:13:33 +0000 (18:13 +0200)
ext/standard/tests/php_version_win_const.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/php_version_win_const.phpt b/ext/standard/tests/php_version_win_const.phpt
new file mode 100644 (file)
index 0000000..12de79b
--- /dev/null
@@ -0,0 +1,18 @@
+--TEST--
+Check that windows version constants are initialized
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) != 'WIN') {
+    die('skip.. Windows only');
+}
+?>
+--FILE--
+<?php
+var_dump(PHP_WINDOWS_VERSION_MAJOR > 0, PHP_WINDOWS_VERSION_MAJOR, PHP_WINDOWS_VERSION_MINOR);
+?>
+==DONE==
+--EXPECTF--
+bool(true)
+int(%d)
+int(%d)
+==DONE==