public function testImageAttributes() { $i = new Imagick(__DIR__ . '/../tmp/test.jpg'); $i->setFillColor(new Rgb(255, 0, 0)); $i->setStrokeColor(new Rgb(0, 0, 255)); $i->setStrokeWidth(5); $this->assertEquals(640, $i->getWidth()); $this->assertEquals(480, $i->getHeight()); $this->assertEquals(3, $i->getChannels()); $this->assertEquals(8, $i->getDepth()); $this->assertContains('RGB', $i->getColorMode()); $this->assertFalse($i->hasAlpha()); }