1--TEST-- 2setcookie() allows empty cookie name 3--FILE-- 4<?php 5try { 6 setcookie('', 'foo'); 7} catch (\ValueError $e) { 8 echo $e->getMessage() . \PHP_EOL; 9} 10?> 11--EXPECT-- 12setcookie(): Argument #1 ($name) must not be empty 13