Preparing for tests
This commit is contained in:
parent
0289f00aa5
commit
dc150881ae
|
@ -17,6 +17,7 @@
|
|||
],
|
||||
"require": {
|
||||
"php": "~7.2",
|
||||
"guzzlehttp/guzzle": "^6.3",
|
||||
"rappasoft/laravel-helpers": "^1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
</filter>
|
||||
<logging>
|
||||
<log type="junit" target="build/report.junit.xml"/>
|
||||
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
|
||||
<log type="coverage-html" target="build/coverage"/>
|
||||
<log type="coverage-text" target="build/coverage.txt"/>
|
||||
<log type="coverage-clover" target="build/logs/clover.xml"/>
|
||||
</logging>
|
||||
|
|
|
@ -6,7 +6,6 @@ use Aryess\PhpMatrixSdk\Exceptions\MatrixException;
|
|||
use Aryess\PhpMatrixSdk\Exceptions\MatrixHttpLibException;
|
||||
use Aryess\PhpMatrixSdk\Exceptions\MatrixRequestException;
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\Exception\RequestException;
|
||||
|
||||
/**
|
||||
* Contains all raw Matrix HTTP Client-Server API calls.
|
||||
|
@ -93,7 +92,10 @@ class MatrixHttpApi {
|
|||
$this->client = new Client();
|
||||
$this->default429WaitMs = $default429WaitMs;
|
||||
$this->useAuthorizationHeader = $useAuthorizationHeader;
|
||||
}
|
||||
|
||||
public function setClient(Client $client) {
|
||||
$this->client = $client;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue