Skip to content

Commit

Permalink
修复TestCase,PHPStan错误 (w7corp#1711)
Browse files Browse the repository at this point in the history
* fix test case

* fix phpstan error
  • Loading branch information
qiqizjl authored and overtrue committed Oct 26, 2019
1 parent e7152c2 commit 8bf420d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ parameters:
- '#Default value of the parameter \#2 \$depth \(INF.0\) of method EasyWeChat\\Kernel\\Support\\Arr::flatten\(\) is incompatible with type int#'
- '#Access to an undefined property EasyWeChat\\Kernel\\ServiceContainer::\$extension#'
- '#Method EasyWeChat\\Kernel\\Contracts\\MessageInterface::transformToXml\(\) invoked with 1 parameter, 0 required#'
- '#GuzzleHttp\\Exception\\GuzzleException is not subtype of Throwable#'
- '#Method EasyWeChat\\Kernel\\Support\\Collection::__set_state\(\) should return object but returns array#'
- '#Property EasyWeChat\\Payment\\Kernel\\BaseClient::\$app \(EasyWeChat\\Payment\\Application\) does not accept EasyWeChat\\MicroMerchant\\Application#'
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function testSubmitAudit()
{
$client = $this->mockApiClient(Client::class, [], new ServiceContainer(['app_id' => 'app-id']));
$client->expects()->httpPostJson('wxa/submit_audit', ['item_list' => ['foo', 'bar'], 'feedback_info' => 'foo', 'feedback_stuff' => 'foo'])->andReturn('mock-result');
$this->assertSame('mock-result', $client->submitAudit(['foo', 'bar']));
$this->assertSame('mock-result', $client->submitAudit(['foo', 'bar'], 'foo', 'foo'));
}

public function testGetAuditStatus()
Expand Down

0 comments on commit 8bf420d

Please sign in to comment.