diff options
| author | marcosptf <marcosptf@yahoo.com.br> | 2015-11-27 18:07:13 -0200 |
|---|---|---|
| committer | Julien Pauli <jpauli@php.net> | 2015-12-24 11:46:48 +0100 |
| commit | bdc8f7d871079c791afcda1e2a4858cd100bc3c9 (patch) | |
| tree | dfe8201618826ca7a176a339f112174d823c1419 | |
| parent | 891ac5930561b717619e34b31b59baf140e675e0 (diff) | |
| download | php-git-bdc8f7d871079c791afcda1e2a4858cd100bc3c9.tar.gz | |
test to function gethostname ( void );
| -rw-r--r-- | ext/standard/tests/network/gethostname.phpt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/standard/tests/network/gethostname.phpt b/ext/standard/tests/network/gethostname.phpt new file mode 100644 index 0000000000..5c811b8c6f --- /dev/null +++ b/ext/standard/tests/network/gethostname.phpt @@ -0,0 +1,20 @@ +--TEST-- +string gethostname(void); +--CREDITS-- +marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br +--SKIPIF-- +<?php +if (phpversion() < "5.3.0") { + die('SKIP php version so lower.'); +} +?> +--FILE-- +<?php +var_dump(gethostname()); +var_dump(gethostname("php-zend-brazil")); +?> +--EXPECTF-- +%s + +Warning: gethostname() expects exactly %d parameters, %d given in %s on line %d +NULL |
