I've configured kohana (3.2) unittest module as described here. So I have:
APPPATH/tests/
phpunit.xml
sampletest.php
And last lines index.php file:
require APPPATH.'bootstrap'.EXT;
if ( ! defined('SUPPRESS_REQUEST'))
Request::factory()->execute()->send_headers();
So the first problem is that in CLI next error appears:
ErrorException [ 8 ]: Undefined index: SERVER_NAME ~ SYSPATH/classes/kohana/url.php [ 79 ]
This happens because of E_STRICT enabled. So when I turn off E_STRICT nothing happens. I mean there's no output for phpunit in CLI, just empty line.
And the second problem is that web access doesn't work at all (http://localhost/unittest). 404 error occurs. Maybe I should create some Route or anything?
Mac OS 10.7.4
Apache 1.3.41
PHPUnit 3.6.11
Kohana 3.2.0