Skip to content

Commit 8c7df24

Browse files
committed
Improve example at readme
1 parent 28edd2f commit 8c7df24

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,14 @@ context('when is not admin', function () {
3838

3939
```php
4040
use function Cfx\PSpec\context;
41+
use function Cfx\PSpec\get;
4142
use function Cfx\PSpec\getSubject;
4243
use function Cfx\PSpec\let;
4344

45+
subject(fn () => get('variable'));
46+
4447
context('when using high order testing', function () {
45-
let('param2', fn () => 2);
48+
let('variable', fn () => 2);
4649

4750
it('can use high order testing')
4851
->expect(getSubject(...))

0 commit comments

Comments
 (0)