Skip to content

Commit

Permalink
fix test by unsetting env
Browse files Browse the repository at this point in the history
ref. #34
  • Loading branch information
jakoch committed Aug 9, 2016
1 parent 7f9544a commit ede9773
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/InstallerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public function testGetCdnUrl()
$cdnurl = \PhantomInstaller\Installer::getCdnUrl($version);
$this->assertSame('https://github.com/medium/phantomjs/releases/download/v'.$version.'/', $cdnurl);

unset($_ENV['PHANTOMJS_CDNURL']);
$_SERVER['PHANTOMJS_CDNURL'] = 'scheme://another-download-url';
$cdnurl = \PhantomInstaller\Installer::getCdnUrl($version);
$this->assertSame('scheme://another-download-url/', $cdnurl);
Expand Down

0 comments on commit ede9773

Please sign in to comment.