Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Commit

Permalink
fixed docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Cas Leentfaar committed Feb 21, 2015
1 parent 2857586 commit f774cca
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Resources/doc/usage-during-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ public function testSend()
// no connection will be made by using the mocked client, it will simply create the proper response
// for this payload and fill it with some sensible data.
$response = $this->get('cl_slack.mock_api_client')->send($payload);

// display the Slack channel ID on which the message was posted
echo $response->getChannel(); // would return mocked data, like 'C01234567'

// display the Slack timestamp on which the message was posted (note: NON-unix timestamp!)
echo $response->getTimestamp(); // would return mocked data, like '12345678.12345678'
}
```

You can check out the `MockApiClient` class itself in the *library's* documentation [here](https://github.com/cleentfaar/slack/blob/master/src/CL/Slack/Test/Transport/MockApiClient.php).
You can read more out the `MockApiClient` class itself in the *library's* documentation [here](https://github.com/cleentfaar/slack/blob/master/src/CL/Slack/Test/Transport/MockApiClient.php).

0 comments on commit f774cca

Please sign in to comment.