Nginx configuration for running Yii tests

Hello, I have a problem related with testing Yii units with phpunit on nginx.

I configure WebTestCase.php as instructed:


/**

 * Change the following URL based on your server configuration

 * Make sure the URL ends with a slash so that we can use relative URLs in test cases

 */

define('TEST_BASE_URL','hxxp://localhost/frameworks/demo/index-test.php/');

But when I run tests, they all fail. When I visit location hxxp://localhost/frameworks/demo/index-test.php/ server returns 404. I think it’s because it ends with a slash.

I have included my nginx config file so if anyone can take a look I’ll be thankful.

No file included.

you can check my config

http://yii.grik.net/index.php?title=Apache_and_Nginx_configurations

it works with URLs like http://example.com/index.php/ well

Thank you, now it works for me too :)