Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions docs/AdvancedUsage.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,9 @@ class PageCest

## Before/After Attributes

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

```php
<?php
Expand Down Expand Up @@ -364,7 +363,7 @@ class ModeratorCest {

### Dependencies

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

```php
Expand Down