This repository has been archived by the owner on Dec 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issues with requirements (#57)
* fixed issues with requirements * fixed issues with requirements * fixed issues with requirements
- Loading branch information
1 parent
9f56e0e
commit 9fc6f11
Showing
3 changed files
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
use GuzzleHttp\HandlerStack; | ||
use GuzzleHttp\Middleware; | ||
use GuzzleHttp\Psr7\Response; | ||
use Mockery as Mock; | ||
|
||
/** | ||
* @author Cas Leentfaar <[email protected]> | ||
|
@@ -89,10 +90,10 @@ public function it_can_send_a_payload() | |
*/ | ||
public function it_can_not_send_a_payload_without_a_token() | ||
{ | ||
/** @var PayloadInterface|\PHPUnit_Framework_MockObject_MockObject $mockPayload */ | ||
$mockPayload = $this->getMock('CL\Slack\Payload\PayloadInterface'); | ||
$apiClient = new ApiClient(); | ||
/* @var PayloadInterface|Mock\MockInterface $mockPayload */ | ||
$mockPayload = Mock::mock(PayloadInterface::class); | ||
|
||
$apiClient = new ApiClient(); | ||
$apiClient->send($mockPayload); | ||
} | ||
} |