Skip to content

Commit 3b75a49

Browse files
authored
Merge pull request Codeception#161 from reinholdfuereder/patch-1
All strings in @example must be enclosed in double quotes
2 parents 7da4527 + a162173 commit 3b75a49

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

docs/07-AdvancedUsage.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,13 @@ Of course, you are not allowed to have *cyclic dependencies*.
205205

206206
What if you want to execute the same test scenario with different data? In this case you can inject examples
207207
as `\Codeception\Example` instances.
208-
Data is defined via the `@example` annotation, using JSON or Doctrine-style notation (limited to a single line). Doctrine-style:
208+
Data is defined via the `@example` annotation, using JSON or Doctrine-style notation (limited to a single line).
209+
210+
<div class="alert alert-info">
211+
Please keep in mind that all string keys and values must be enclosed in double quotes (`"`).
212+
</div>
213+
214+
Doctrine-style:
209215

210216
{% highlight php %}
211217

@@ -250,11 +256,6 @@ class PageCest
250256

251257
{% endhighlight %}
252258

253-
<div class="alert alert-info">
254-
If you use JSON notation please keep in mind that all string keys
255-
and values should be enclosed in double quotes (`"`) according to JSON standard.
256-
</div>
257-
258259
Key-value data in Doctrine-style annotation syntax:
259260

260261
{% highlight php %}
@@ -843,4 +844,4 @@ and write them faster using the interactive console. Codeception tests can be ea
843844

844845

845846
* **Next Chapter: [BDD >](/docs/07-BDD)**
846-
* **Previous Chapter: [< ReusingTestCode](/docs/06-ReusingTestCode)**
847+
* **Previous Chapter: [< ReusingTestCode](/docs/06-ReusingTestCode)**

0 commit comments

Comments
 (0)