Skip to content

Commit b41aa0b

Browse files
Fix code snippet formatting
1 parent 663b03f commit b41aa0b

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy