diff --git a/src/TestSuite.php b/src/TestSuite.php index e27ec155..5bfc03a2 100644 --- a/src/TestSuite.php +++ b/src/TestSuite.php @@ -114,13 +114,6 @@ final class TestSuite 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 { assert($this->test instanceof TestCase); @@ -130,4 +123,11 @@ final class TestSuite 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 + } }