instaclick/php-webdriver — pull request #19 by fbrnc (2012-11-29 22:44:24+00:00)
Title: SauceRest

Hi,

I was playing around with your SauceRest implementation and I noticed that you mixed up userName and userId preventing some commands to complete successfully.

Besides that the CurlService couldn't handle PUT requests. I added that.

Updated the test status in sauce labs can now be done this way:

$sessionId = array_pop(explode('/', $session->getUrl())); /* @var $session \WebDriver\Session */
$rest = new WebDriver\SauceLabs\SauceRest('userId', 'accessKey');
$rest->updateJob($sessionId, array(WebDriver\SauceLabs\Capability::PASSED => true));