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