Before I post my problem I would like you in advance for taking the time to read this.
I've been using simpletest to help me develop and test my php scripts.
I'm currently working on a session class and when I go to test it I get the following exception from simple test.
Unexpected PHP error [session_start(): Cannot send session cache limiter - headers already sent]
I have checked all my php files for leading white space. I have checked all the classes that I'm using to see if they write to the browser. They don't. They are just classes, as in controllers and don't write to the browser. I have also checked my files for BOMs [Byte Order Markers], but there are none and the program that I use saves all files without a BOM.
The problem is simpletest and the session class that I'm trying to test. Simple test starts a new session in order to test my class, but I need to test whether a session is started and destroyed in my session class. In other words, the two are fighting.
Are there any ways around this? I have tried using
ob_start();
and corresponding functions with no luck.
Thanks for your time.
Dodzi