mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
Fix an issue where beforeEach/afterEach functions were called on other describe blocks with the same name
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
↓ todo on describe → should not fail
|
||||
↓ todo on describe → should run
|
||||
|
||||
TODO Tests\Features\Todo - 28 todos
|
||||
TODO Tests\Features\Todo - 29 todos
|
||||
↓ something todo later
|
||||
↓ something todo later chained
|
||||
↓ something todo later chained and with function body
|
||||
@ -45,6 +45,7 @@
|
||||
// nested describe note
|
||||
// test note
|
||||
↓ todo on describe → todo block → it should not execute
|
||||
↓ todo on describe with matching name → describe block → it should not execute
|
||||
↓ todo on test after describe block
|
||||
↓ todo with note on test after describe block
|
||||
// test note
|
||||
@ -80,6 +81,6 @@
|
||||
PASS Tests\CustomTestCase\ParentTest
|
||||
✓ override method
|
||||
|
||||
Tests: 38 todos, 3 passed (20 assertions)
|
||||
Tests: 39 todos, 3 passed (21 assertions)
|
||||
Duration: x.xxs
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
↓ todo on describe → should not fail
|
||||
↓ todo on describe → should run
|
||||
|
||||
TODO Tests\Features\Todo - 28 todos
|
||||
TODO Tests\Features\Todo - 29 todos
|
||||
↓ something todo later
|
||||
↓ something todo later chained
|
||||
↓ something todo later chained and with function body
|
||||
@ -45,6 +45,7 @@
|
||||
// nested describe note
|
||||
// test note
|
||||
↓ todo on describe → todo block → it should not execute
|
||||
↓ todo on describe with matching name → describe block → it should not execute
|
||||
↓ todo on test after describe block
|
||||
↓ todo with note on test after describe block
|
||||
// test note
|
||||
@ -80,6 +81,6 @@
|
||||
PASS Tests\CustomTestCase\ParentTest
|
||||
✓ override method
|
||||
|
||||
Tests: 38 todos, 3 passed (20 assertions)
|
||||
Tests: 39 todos, 3 passed (21 assertions)
|
||||
Duration: x.xxs
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
↓ todo on describe → should not fail
|
||||
↓ todo on describe → should run
|
||||
|
||||
TODO Tests\Features\Todo - 28 todos
|
||||
TODO Tests\Features\Todo - 29 todos
|
||||
↓ something todo later
|
||||
↓ something todo later chained
|
||||
↓ something todo later chained and with function body
|
||||
@ -45,6 +45,7 @@
|
||||
// nested describe note
|
||||
// test note
|
||||
↓ todo on describe → todo block → it should not execute
|
||||
↓ todo on describe with matching name → describe block → it should not execute
|
||||
↓ todo on test after describe block
|
||||
↓ todo with note on test after describe block
|
||||
// test note
|
||||
@ -80,6 +81,6 @@
|
||||
PASS Tests\CustomTestCase\ParentTest
|
||||
✓ override method
|
||||
|
||||
Tests: 38 todos, 3 passed (20 assertions)
|
||||
Tests: 39 todos, 3 passed (21 assertions)
|
||||
Duration: x.xxs
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
↓ todo on describe → should not fail
|
||||
↓ todo on describe → should run
|
||||
|
||||
TODO Tests\Features\Todo - 28 todos
|
||||
TODO Tests\Features\Todo - 29 todos
|
||||
↓ something todo later
|
||||
↓ something todo later chained
|
||||
↓ something todo later chained and with function body
|
||||
@ -45,6 +45,7 @@
|
||||
// nested describe note
|
||||
// test note
|
||||
↓ todo on describe → todo block → it should not execute
|
||||
↓ todo on describe with matching name → describe block → it should not execute
|
||||
↓ todo on test after describe block
|
||||
↓ todo with note on test after describe block
|
||||
// test note
|
||||
@ -80,6 +81,6 @@
|
||||
PASS Tests\CustomTestCase\ParentTest
|
||||
✓ override method
|
||||
|
||||
Tests: 38 todos, 3 passed (20 assertions)
|
||||
Tests: 39 todos, 3 passed (21 assertions)
|
||||
Duration: x.xxs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user