mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
add test
This commit is contained in:
parent
e76cf8432d
commit
6f46fa376b
1 changed files with 18 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue