/** * Tests the usePalette() method. */ public function testUsePalette() { $image = new Image(new \DOMDocument(), new MetadataBag()); $this->setExpectedException('Imagine\\Exception\\RuntimeException'); $image->usePalette($this->getMock('Imagine\\Image\\Palette\\PaletteInterface')); }