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



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

it works with URLs like well

Thank you, now it works for me too :)