Prose\SauceLabsRestApi::__construct PHP Метод

__construct() публичный Метод

public __construct ( StoryTeller $st, $params = [] )
$st DataSift\Storyplayer\PlayerLib\StoryTeller
    public function __construct(StoryTeller $st, $params = array())
    {
        // call our parent
        parent::__construct($st, $params);
        // get the SauceLabs auth details
        // they are part of the test device details available from $st
        $deviceDetails = $st->getDeviceDetails();
        // remember the auth details
        $this->sauceLabsUsername = $deviceDetails->saucelabs->username;
        $this->sauceLabsAccessKey = $deviceDetails->saucelabs->accesskey;
    }
SauceLabsRestApi