Fat Free PHP framework, router breaks unit testing -


if follow advice @ f3 site setting unit testing fails. example steps through creating file f3 tests , says save in root test.php. url http://localhost/test.php. well... never work because router chokes on it. put it? put in router index.php file? perhaps i'm tired or stupid right now, don't see how run test.php file.

thanks lot help.

i recommend check out dev branch of f3.

https://github.com/bcosca/fatfree/tree/dev

it consists of latest code , whole bunch of unit tests (see app folder). thing docs is: they're not 100% date , example unit tests doesn't work routes. it's pure php test app's functions calling test.php tests code of hello.php

if router tries test.php in routes, have fix rewrite rules, because missed exclude existing files , folders. here's snippet apache.

rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -