mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
add test
This commit is contained in:
parent
e76cf8432d
commit
6f46fa376b
18
ext/standard/tests/php_version_win_const.phpt
Normal file
18
ext/standard/tests/php_version_win_const.phpt
Normal file
@ -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==
|
Loading…
Reference in New Issue
Block a user