File tree Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Original file line number Diff line number Diff line change
1
+ source = ./index.md
2
+ destination = ./doc-test
Original file line number Diff line number Diff line change
1
+ composer.phar
2
+ /vendor /
3
+ composer.lock
4
+ /doc-test
Original file line number Diff line number Diff line change
1
+ {
2
+ "require-dev" : {
3
+ "json-api-php/json-api" : " ^1.0" ,
4
+ "doc2test/doc2test" : " dev-master"
5
+ },
6
+ "scripts" : {
7
+ "test" : " vendor/bin/doc2test && vendor/bin/phpunit -c doc-test/phpunit.xml --coverage-text"
8
+ }
9
+ }
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ specification in a set of PHP 7 classes. We adhere to the following concepts:
11
11
## Example
12
12
13
13
This JSON response...
14
+ <!-- name=my_json -->
14
15
``` json
15
16
{
16
17
"data" : [
@@ -111,10 +112,9 @@ This JSON response...
111
112
}
112
113
```
113
114
...can be build with this PHP code
115
+ <!-- assert=output expect=my_json -->
114
116
``` php
115
117
<?php
116
- require_once __DIR__ . '/vendor/autoload.php';
117
-
118
118
use JsonApiPhp\JsonApi\Document;
119
119
use JsonApiPhp\JsonApi\Document\Resource\Linkage\MultiLinkage;
120
120
use JsonApiPhp\JsonApi\Document\Resource\Linkage\SingleLinkage;
You can’t perform that action at this time.
0 commit comments