summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/chgrp.phpt
blob: 37ae20d40e1aec84f961eb4e53692bed0d4de018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
chgrp() with NULL as group name
--SKIPIF--
<?php
if(substr(PHP_OS, 0, 3) == "WIN")
  die("skip, not supported on Windows");
?>
--FILE--
<?php
try {
    chgrp("sjhgfskhagkfdgskjfhgskfsdgfkdsajf", null);
} catch (TypeError $exception) {
    echo $exception->getMessage() . "\n";
}
?>
--EXPECT--
chgrp(): Argument #2 ($group) must be of type string|int, null given