1--TEST-- 2getprotobynumber function basic test 3--CREDITS-- 4edgarsandi - <edgar.r.sandi@gmail.com> 5--SKIPIF-- 6<?php 7 if(in_array(PHP_OS_FAMILY, ['BSD', 'Darwin', 'Solaris', 'Linux'])){ 8 if (!file_exists("/etc/protocols")) die("skip reason: missing /etc/protocols"); 9 } 10?> 11--FILE-- 12<?php 13 var_dump(getprotobynumber(6)); 14?> 15--EXPECT-- 16string(3) "tcp" 17