Skip to content

Commit

Permalink
posible db url test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
spacedevin committed Dec 2, 2015
1 parent 7be6e9a commit 2fe85f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/DBUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function setUp() {
$env = getenv('TRAVIS') ? 'travis' : 'local';
$this->tip->config('tests/config.db.'.$env.'.ini');

$url = 'mysql://'.$this->tip->config()['user'].':'.$this->tip->config()['pass'].'@'.$this->tip->config()['host'].'/'.$this->tip->config()['database'].'?persistent=true&something=else';
$url = 'mysql://'.$this->tip->config()['user'].($this->tip->config()['pass'] ? ':'.$this->tip->config()['pass'] : '').'@'.$this->tip->config()['host'].'/'.$this->tip->config()['database'].'?persistent=true&something=else';

// rebuild
$this->tip = new Tipsy\Tipsy;
Expand Down

0 comments on commit 2fe85f0

Please sign in to comment.