Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 5205c5d

Browse files
committed
🚿
1 parent c7fd621 commit 5205c5d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

tests/Core/APITestAbstract.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ abstract class APITestAbstract extends OAuthTestAbstract{
5454
*/
5555
protected $http;
5656

57+
/**
58+
* @var float
59+
*/
60+
protected $requestDelay = 0.25;
61+
62+
/**
63+
* @var string
64+
*/
65+
protected $userAgent = 'chillerlanPhpOAuth/3.0.0 +https://github.com/chillerlan/php-oauth';
66+
5767
/**
5868
* this is ugly. don't look at it - it works.
5969
*/
@@ -71,9 +81,9 @@ protected function setUp(){
7181
'tokenAutoRefresh' => true,
7282
// HTTPOptionsTrait
7383
'ca_info' => $this->CFGDIR.'/cacert.pem',
74-
'userAgent' => 'chillerlanPhpOAuth/3.0.0 +https://github.com/chillerlan/php-oauth',
84+
'userAgent' => $this->userAgent,
7585
// testHTTPClient
76-
'sleep' => 0.25,
86+
'sleep' => $this->requestDelay,
7787
];
7888

7989
$this->options = new class($options) extends OAuthOptions{

0 commit comments

Comments
 (0)