This commit is contained in:
Fabio Ivona
2023-08-01 17:14:49 +02:00
parent 4e719214c6
commit 844d175981

View File

@ -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
}
} }