From 844d1759813ca041d911aa1b8a4323de3318cdd6 Mon Sep 17 00:00:00 2001 From: Fabio Ivona Date: Tue, 1 Aug 2023 17:14:49 +0200 Subject: [PATCH] refactor --- src/TestSuite.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 + } }