Skip to content

Commit 62ceb53

Browse files
Update AdvancedUsage.md: Typos
= #868 without conflicts
1 parent 4d24340 commit 62ceb53

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/AdvancedUsage.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,8 @@ class PageCest
319319
## Before/After Attributes
320320

321321
You can control execution flow with `#[Before]` and `#[After]` attributes. You may move common actions
322-
into protected (non-test) methods and invoke them before or after the test method by putting them into attributes.
323-
It is possible to invoke several methods by using more than one `#[Before]` or `#[After]` attribute.
324-
Methods are invoked in order from top to bottom.
322+
into protected (i.e. non-test) methods and invoke them before or after the test method by putting them into attributes.
323+
When adding multiple `#[Before]` or `#[After]` attributes, methods are invoked in order from top to bottom.
325324

326325
```php
327326
<?php
@@ -364,7 +363,7 @@ class ModeratorCest {
364363

365364
### Dependencies
366365

367-
With the `Depends` attribute, you can specify a test that should be passed before the current one.
366+
With the `#[Depends]` attribute, you can specify a test that should be passed before the current one.
368367
If that test fails, the current test will be skipped. You should pass the method name of the test you are relying on.
369368

370369
```php

0 commit comments

Comments
 (0)