mirror of
https://github.com/SkillDisplay/PHPToolKit.git
synced 2024-12-22 10:46:09 +01:00
Merge branch 'master' into organisation
This commit is contained in:
commit
b3bd17d10a
5 changed files with 13 additions and 6 deletions
1
.github/workflows/ci.yaml
vendored
1
.github/workflows/ci.yaml
vendored
|
@ -20,7 +20,6 @@ jobs:
|
|||
matrix:
|
||||
php-version:
|
||||
- 7.4
|
||||
- 8.0
|
||||
- 8.1
|
||||
- 8.2
|
||||
steps:
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
],
|
||||
"require": {
|
||||
"ext-json": "*",
|
||||
"guzzlehttp/guzzle": "^6.5",
|
||||
"guzzlehttp/guzzle": "^7.7",
|
||||
"php": "7.4.* || 8.1.* || 8.2.*"
|
||||
},
|
||||
"autoload": {
|
||||
|
@ -29,5 +29,10 @@
|
|||
"phpunit/phpunit": "^9.3",
|
||||
"phpspec/prophecy-phpunit": "^2.0",
|
||||
"squizlabs/php_codesniffer": "^3.5"
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "2.x-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,6 +26,7 @@ namespace SkillDisplay\PHPToolKit\Tests\Unit\Api;
|
|||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\Psr7\Request;
|
||||
use GuzzleHttp\Psr7\Response;
|
||||
use GuzzleHttp\Psr7\Utils;
|
||||
use Prophecy\Argument;
|
||||
use Prophecy\PhpUnit\ProphecyTrait;
|
||||
use SkillDisplay\PHPToolKit\Api\Campaigns;
|
||||
|
@ -75,7 +76,7 @@ class CampaignsTest extends TestCase
|
|||
}))->willReturn($response->reveal());
|
||||
|
||||
$response->getStatusCode()->willReturn(200);
|
||||
$response->getBody()->willReturn('{"Version": "1.0","ErrorMessage": "","Campaigns": [{"uid": 1},{"uid": 2}]}');
|
||||
$response->getBody()->willReturn(Utils::streamFor('{"Version": "1.0","ErrorMessage": "","Campaigns": [{"uid": 1},{"uid": 2}]}'));
|
||||
|
||||
$subject = new Campaigns(
|
||||
$settings->reveal(),
|
||||
|
|
|
@ -26,6 +26,7 @@ namespace SkillDisplay\PHPToolKit\Tests\Unit\Api;
|
|||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\Psr7\Request;
|
||||
use GuzzleHttp\Psr7\Response;
|
||||
use GuzzleHttp\Psr7\Utils;
|
||||
use Prophecy\Argument;
|
||||
use Prophecy\PhpUnit\ProphecyTrait;
|
||||
use SkillDisplay\PHPToolKit\Api\SkillSet;
|
||||
|
@ -77,7 +78,7 @@ class SkillSetTest extends TestCase
|
|||
}))->willReturn($response->reveal());
|
||||
|
||||
$response->getStatusCode()->willReturn(200);
|
||||
$response->getBody()->willReturn('{"uid":10}');
|
||||
$response->getBody()->willReturn(Utils::streamFor('{"uid":10}'));
|
||||
|
||||
$subject = new SkillSet(
|
||||
$settings->reveal(),
|
||||
|
|
|
@ -26,6 +26,7 @@ namespace SkillDisplay\PHPToolKit\Tests\Unit\Api;
|
|||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\Psr7\Request;
|
||||
use GuzzleHttp\Psr7\Response;
|
||||
use GuzzleHttp\Psr7\Utils;
|
||||
use Prophecy\Argument;
|
||||
use Prophecy\PhpUnit\ProphecyTrait;
|
||||
use SkillDisplay\PHPToolKit\Api\Skill;
|
||||
|
@ -77,7 +78,7 @@ class SkillTest extends TestCase
|
|||
}))->willReturn($response->reveal());
|
||||
|
||||
$response->getStatusCode()->willReturn(200);
|
||||
$response->getBody()->willReturn('{"uid":10}');
|
||||
$response->getBody()->willReturn(Utils::streamFor('{"uid":10}'));
|
||||
|
||||
$subject = new Skill(
|
||||
$settings->reveal(),
|
||||
|
|
Loading…
Reference in a new issue