Skip to content

Commit

Permalink
Merge pull request #3 from bayandin/patch-1
Browse files Browse the repository at this point in the history
Fixed prepareSession() if session not exists
  • Loading branch information
jlipps committed Jan 7, 2013
2 parents d45db7c + 5611a60 commit 3412bf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Sauce/Sausage/WebDriverTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,10 @@ public function sendKeys(\PHPUnit_Extensions_Selenium2TestCase_Element $element,

public function prepareSession()
{
$session = parent::prepareSession();
if ($this->getBuild())
SauceTestCommon::ReportBuild($this->getSessionId(), $this->getBuild());
return parent::prepareSession();
return $session;
}

public function tearDown()
Expand Down

0 comments on commit 3412bf9

Please sign in to comment.