Permalink
Browse files

Merge pull request #3 from bayandin/patch-1

Fixed prepareSession() if session not exists
  • Loading branch information...
2 parents d45db7c + 5611a60 commit 3412bf981ab68b1d482c0566cc50cda5d0674454 @jlipps committed Jan 7, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/Sauce/Sausage/WebDriverTestCase.php
@@ -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()

0 comments on commit 3412bf9

Please sign in to comment.