diff --git a/tests/MonsterGenerationTest.php b/tests/MonsterGenerationTest.php index 61ed04c..d340765 100644 --- a/tests/MonsterGenerationTest.php +++ b/tests/MonsterGenerationTest.php @@ -114,6 +114,12 @@ public function testStreamOutput(): void self::assertEquals($this->getImageFile('test@example.com', 120), stream_get_contents($stream)); } + public function testInvalidStream(): void + { + $this->expectException(InvalidArgumentException::class); + stream_monster('not a stream'); + } + public function testNoNegativeSizes(): void { $this->expectException(InvalidArgumentException::class);