fix: test description on beforeEach failure

This commit is contained in:
Nuno Maduro
2023-07-22 09:33:41 -05:00
parent cf5275293f
commit 5637dfa75d
3 changed files with 14 additions and 6 deletions

View File

@ -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');