diff options
| author | Ondřej Surý <ondrej@sury.org> | 2013-05-09 17:32:08 +0200 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2013-05-09 17:32:08 +0200 |
| commit | d674441ee1b9e7407f464b2692d9f5a0e2be3b4e (patch) | |
| tree | cc4885524786f143bcc1af7d6c3f86fb571905de /tests/basic | |
| parent | 367111123281ebfd2876d4c8cf33414b394f489a (diff) | |
| download | php-d674441ee1b9e7407f464b2692d9f5a0e2be3b4e.tar.gz | |
Imported Upstream version 5.5.0~rc1upstream/5.5.0_rc1
Diffstat (limited to 'tests/basic')
| -rw-r--r-- | tests/basic/req60524-win.phpt | 13 | ||||
| -rw-r--r-- | tests/basic/req60524.phpt | 6 |
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/basic/req60524-win.phpt b/tests/basic/req60524-win.phpt new file mode 100644 index 000000000..b2e7cfdab --- /dev/null +++ b/tests/basic/req60524-win.phpt @@ -0,0 +1,13 @@ +--TEST-- +Req #60524 (Specify temporary directory) +--INI-- +sys_temp_dir=C:\Windows +--SKIPIF-- +<?php +if( substr(PHP_OS, 0, 3) != "WIN" ) + die('skip Run only on Windows'); +?> +--FILE-- +<?php echo sys_get_temp_dir(); ?> +--EXPECT-- +C:\\Windows diff --git a/tests/basic/req60524.phpt b/tests/basic/req60524.phpt index 6803e1fd8..7cc3edfab 100644 --- a/tests/basic/req60524.phpt +++ b/tests/basic/req60524.phpt @@ -2,6 +2,12 @@ Req #60524 (Specify temporary directory) --INI-- sys_temp_dir=/path/to/temp/dir +--SKIPIF-- +<?php +if (substr(PHP_OS, 0, 3) == 'WIN') { + die('skip non-windows only test'); +} +?> --FILE-- <?php echo sys_get_temp_dir(); ?> --EXPECT-- |
