so this isn't actually testing that data contains a null byte.
i don't know enough PHP syntax to know how that kind of thing is encoded in strings
but there might be a more obvious to the reader way to show that it has a null byte.
var_dump maybe?