mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
refactor
This commit is contained in:
@ -114,13 +114,6 @@ final class TestSuite
|
|||||||
return (fn () => self::$__filename)->call($this->test, $this->test::class); // @phpstan-ignore-line
|
return (fn () => self::$__filename)->call($this->test, $this->test::class); // @phpstan-ignore-line
|
||||||
}
|
}
|
||||||
|
|
||||||
public function registerSnapshotChange(string $message): void
|
|
||||||
{
|
|
||||||
assert($this->test instanceof TestCase);
|
|
||||||
|
|
||||||
(fn () => $this->__snapshotChanges[] = $message)->call($this->test, $this->test::class); // @phpstan-ignore-line
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getDescription(): string
|
public function getDescription(): string
|
||||||
{
|
{
|
||||||
assert($this->test instanceof TestCase);
|
assert($this->test instanceof TestCase);
|
||||||
@ -130,4 +123,11 @@ final class TestSuite
|
|||||||
|
|
||||||
return str_replace(' ', '_', $description.$datasetAsString);
|
return str_replace(' ', '_', $description.$datasetAsString);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function registerSnapshotChange(string $message): void
|
||||||
|
{
|
||||||
|
assert($this->test instanceof TestCase);
|
||||||
|
|
||||||
|
(fn () => $this->__snapshotChanges[] = $message)->call($this->test, $this->test::class); // @phpstan-ignore-line
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user