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