Preparing for tests

This commit is contained in:
Yoann Celton 2018-11-28 23:22:55 +11:00
parent 0289f00aa5
commit dc150881ae
3 changed files with 5 additions and 2 deletions

View File

@ -17,6 +17,7 @@
], ],
"require": { "require": {
"php": "~7.2", "php": "~7.2",
"guzzlehttp/guzzle": "^6.3",
"rappasoft/laravel-helpers": "^1.0" "rappasoft/laravel-helpers": "^1.0"
}, },
"require-dev": { "require-dev": {

View File

@ -21,7 +21,7 @@
</filter> </filter>
<logging> <logging>
<log type="junit" target="build/report.junit.xml"/> <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-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/> <log type="coverage-clover" target="build/logs/clover.xml"/>
</logging> </logging>

View File

@ -6,7 +6,6 @@ use Aryess\PhpMatrixSdk\Exceptions\MatrixException;
use Aryess\PhpMatrixSdk\Exceptions\MatrixHttpLibException; use Aryess\PhpMatrixSdk\Exceptions\MatrixHttpLibException;
use Aryess\PhpMatrixSdk\Exceptions\MatrixRequestException; use Aryess\PhpMatrixSdk\Exceptions\MatrixRequestException;
use GuzzleHttp\Client; use GuzzleHttp\Client;
use GuzzleHttp\Exception\RequestException;
/** /**
* Contains all raw Matrix HTTP Client-Server API calls. * Contains all raw Matrix HTTP Client-Server API calls.
@ -93,7 +92,10 @@ class MatrixHttpApi {
$this->client = new Client(); $this->client = new Client();
$this->default429WaitMs = $default429WaitMs; $this->default429WaitMs = $default429WaitMs;
$this->useAuthorizationHeader = $useAuthorizationHeader; $this->useAuthorizationHeader = $useAuthorizationHeader;
}
public function setClient(Client $client) {
$this->client = $client;
} }
/** /**