protected function setUp() { $this->appKey = getenv('APP_KEY'); $this->username = getenv('USERNAME'); $this->password = getenv('PASSWORD'); Betfair::auth()->init($this->appKey, $this->username, $this->password); }
public function testSessionRemaining() { Betfair::auth()->init($this->appKey, $this->username, $this->password); sleep(2); $this->assertEquals(Auth::SESSION_LENGTH - 2, Betfair::auth()->sessionRemaining()); }