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