Add header_send condition

Add this condition for phpunit.
The header is not added if header as already sent