Skip to content

Commit

Permalink
fix domain
Browse files Browse the repository at this point in the history
  • Loading branch information
KhristenkoYura committed Jun 20, 2015
1 parent 7556d04 commit 416b54b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ matrix:
- php: nightly
- php: hhvm-nightly

env:
- TEST_DOMAIN=localhost

before_script:
- sudo ./tests/data/setup_nginx_for_travis.sh
- composer self-update
Expand Down
4 changes: 4 additions & 0 deletions tests/CaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ abstract class CaseTest extends PHPUnit_Framework_TestCase {
protected $req;

public function setUp() {
$domain = getenv('TEST_DOMAIN');
if ($domain) {
$this->domain = $domain;
}
$this->req = $this->createReq();
}

Expand Down
2 changes: 1 addition & 1 deletion tests/data/travis_nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ http {
gzip on;

server {
server_name test.multi.dev;
server_name localhost;

listen 80;

Expand Down

0 comments on commit 416b54b

Please sign in to comment.