Skip to content

Commit 0aea212

Browse files
authored
Merge pull request #664 from paulohenriquesg/patch-2
Fix code snippet formatting
2 parents 663b03f + b41aa0b commit 0aea212

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

guides/10-APITesting.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ $response = $I->send('TRACE', '/posts');
136136
If API endpoint accepts JSON you can use `send` methods with `AsJson` suffix to convert data automatically.
137137
In this case `Content-Type` header is sent with `application/json` value and response if JSON is parsed:
138138

139-
```php$I->sendPostAsJson('/users', ['name' => 'old name']);
139+
```php
140+
$I->sendPostAsJson('/users', ['name' => 'old name']);
140141
$users = $I->sendGetAsJson('/users');
141142
$I->sendPutAsJson('/users/' . $users[0]['id'], ['name' => 'new name']);
142143
$I->sendDeleteAsJson('/users/' . $users[1]['id']);

0 commit comments

Comments
 (0)