Skip to content

Commit

Permalink
Add test for toString
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhamp committed Jan 8, 2024
1 parent b9f660b commit 12efc1d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Integration/ImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ public function test_basic_image(Image $image, string $name): void
$this->assertMatchesImageSnapshot($path);
}

#[DataProvider('snapshotImages')]
public function test_stringify_image(Image $image, string $name): void
{
$this->assertIsString($image->toString());
}

public static function snapshotImages(): iterable
{
yield 'basic' => [
Expand Down

0 comments on commit 12efc1d

Please sign in to comment.