Skip to content

Commit

Permalink
Improve example at readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hjJunior committed Apr 17, 2024
1 parent 28edd2f commit 8c7df24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,14 @@ context('when is not admin', function () {

```php
use function Cfx\PSpec\context;
use function Cfx\PSpec\get;
use function Cfx\PSpec\getSubject;
use function Cfx\PSpec\let;

subject(fn () => get('variable'));

context('when using high order testing', function () {
let('param2', fn () => 2);
let('variable', fn () => 2);

it('can use high order testing')
->expect(getSubject(...))
Expand Down

0 comments on commit 8c7df24

Please sign in to comment.