|
60 | 60 | * Content-Type: application/json
|
61 | 61 | * ```
|
62 | 62 | *
|
| 63 | + * ## JSONPath |
| 64 | + * |
| 65 | + * [JSONPath](http://goessner.net/articles/JsonPath/) is the equivalent to XPath, for querying JSON data structures. |
| 66 | + * Here's an [Online JSONPath Expressions Tester](http://jsonpath.curiousconcept.com/) |
| 67 | + * |
63 | 68 | * ## Public Properties
|
64 | 69 | *
|
65 | 70 | * * headers - array of headers going to be sent.
|
@@ -985,13 +990,8 @@ public function grabResponse()
|
985 | 990 | }
|
986 | 991 |
|
987 | 992 | /**
|
988 |
| - * Returns data from the current JSON response using [JSONPath](http://goessner.net/articles/JsonPath/) as selector. |
989 |
| - * JsonPath is XPath equivalent for querying Json structures. |
990 |
| - * Try your JsonPath expressions [online](http://jsonpath.curiousconcept.com/). |
| 993 | + * See [#jsonpath](#jsonpath) for general info on JSONPath. |
991 | 994 | * Even for a single value an array is returned.
|
992 |
| - * |
993 |
| - * This method **require [`flow/jsonpath` > 0.2](https://github.com/FlowCommunications/JSONPath/) library to be installed**. |
994 |
| - * |
995 | 995 | * Example:
|
996 | 996 | *
|
997 | 997 | * ``` php
|
@@ -1081,12 +1081,8 @@ public function dontSeeResponseJsonMatchesXpath($xpath)
|
1081 | 1081 | }
|
1082 | 1082 |
|
1083 | 1083 | /**
|
1084 |
| - * Checks if json structure in response matches [JsonPath](http://goessner.net/articles/JsonPath/). |
1085 |
| - * JsonPath is XPath equivalent for querying Json structures. |
1086 |
| - * Try your JsonPath expressions [online](http://jsonpath.curiousconcept.com/). |
1087 |
| - * This assertion allows you to check the structure of response json. |
1088 |
| - * |
1089 |
| - * This method **require [`flow/jsonpath` > 0.2](https://github.com/FlowCommunications/JSONPath/) library to be installed**. |
| 1084 | + * See [#jsonpath](#jsonpath) for general info on JSONPath. |
| 1085 | + * Checks if JSON structure in response matches JSONPath. |
1090 | 1086 | *
|
1091 | 1087 | * ```json
|
1092 | 1088 | * { "store": {
|
@@ -1135,7 +1131,8 @@ public function seeResponseJsonMatchesJsonPath($jsonPath)
|
1135 | 1131 | }
|
1136 | 1132 |
|
1137 | 1133 | /**
|
1138 |
| - * Opposite to seeResponseJsonMatchesJsonPath |
| 1134 | + * See [#jsonpath](#jsonpath) for general info on JSONPath. |
| 1135 | + * Opposite to [`seeResponseJsonMatchesJsonPath()`](#seeResponseJsonMatchesJsonPath) |
1139 | 1136 | *
|
1140 | 1137 | * @param string $jsonPath
|
1141 | 1138 | * @part json
|
|
0 commit comments