Yii Framework Forum: Nginx configuration for running Yii tests - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Nginx configuration for running Yii tests Rate Topic: -----

#1 User is offline   burgulgoth 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 18-August 11
  • Location:Croatia

Posted 18 August 2011 - 03:48 PM

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.

Attached File(s)


:)
0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,738
  • Joined: 17-January 09
  • Location:Russia

Posted 18 August 2011 - 06:45 PM

No file included.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#3 User is offline   grigori 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 41
  • Joined: 06-February 11

Posted 18 August 2011 - 06:58 PM

you can check my config
http://yii.grik.net/..._configurations

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

#4 User is offline   burgulgoth 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 18-August 11
  • Location:Croatia

Posted 01 September 2011 - 09:02 AM

View Postgrigori, on 18 August 2011 - 06:58 PM, said:

you can check my config


Thank you, now it works for me too :)
:)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users