1--TEST-- 2Test setrawcookie to fail when output exists before 3--CREDITS-- 4PHP TestFEst 2017 - PHPDublin, PHPSP - Joao P V Martins <jp.joao@gmail.com> 5--FILE-- 6<?php 7echo 'output' . PHP_EOL; 8var_dump(@setrawcookie('cookie_name', rawurlencode('cookie_content'))); 9?> 10--EXPECT-- 11output 12bool(false) 13