public function testGetImageResource() { $i = new Gd(__DIR__ . '/../tmp/test.jpg'); $i->setStrokeColor(new Rgb(0, 0, 0))->drawRectangle(10, 10, 100, 100); $this->assertNotNull($i->resource()); }