mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 17:27: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
src/Support/Description.php
Normal file
15
src/Support/Description.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Pest\Support;
|
||||
|
||||
final readonly class Description implements \Stringable
|
||||
{
|
||||
public function __construct(private string $description) {}
|
||||
|
||||
public function __toString(): string
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user