newImage(3, 2); $this->assertInstanceOf(Image::class, $image); } public function testNewCore(): void { $factory = new ImageFactory(); $core = $factory->newCore(3, 2); $this->assertInstanceOf(Imagick::class, $core); } }