Fix test for TCP_NODELAY constant

Actually check for the constant, instead of just printing a string...
This commit is contained in:
Gabriel Caruso 2018-02-03 15:49:35 -02:00 committed by Nikita Popov
parent 9a4cc52c23
commit 0709eb80f3

View File

@ -1,11 +1,13 @@
--TEST--
Bug 46360 - TCP_NODELAY constant (sock_get_option, sock_set_option)
--SKIPIF--
<?php if (!extension_loaded('sockets')) die('skip sockets extension not loaded'); ?>
--CREDITS--
Florian Anderiasch
fa@php.net
--FILE--
<?php
var_dump('TCP_NODELAY');
var_dump(TCP_NODELAY);
?>
--EXPECT--
string(11) "TCP_NODELAY"
--EXPECTF--
int(%d)