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