mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
fix: test description on beforeEach failure
This commit is contained in:
@ -1,6 +1,13 @@
|
||||
<?php
|
||||
|
||||
beforeEach(fn () => $this->latestDescription = self::$__latestDescription);
|
||||
beforeEach(function () {
|
||||
$this->description = $this->__description;
|
||||
$this->latestDescription = self::$__latestDescription;
|
||||
});
|
||||
|
||||
test('description', function () {
|
||||
expect($this->description)->toBe('description');
|
||||
});
|
||||
|
||||
test('latest description', function () {
|
||||
expect($this->latestDescription)->toBe('latest description');
|
||||
|
||||
Reference in New Issue
Block a user