Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public function testSessionRemaining()
 {
     Betfair::auth()->init($this->appKey, $this->username, $this->password);
     sleep(2);
     $this->assertEquals(Auth::SESSION_LENGTH - 2, Betfair::auth()->sessionRemaining());
 }