/** * @covers Kunstmaan\MediaBundle\Entity\Media::getMetadata * @covers Kunstmaan\MediaBundle\Entity\Media::getMetadataValue * @covers Kunstmaan\MediaBundle\Entity\Media::setMetadata * @covers Kunstmaan\MediaBundle\Entity\Media::setMetadataValue */ public function testGetSetMetaDataAndValues() { $meta = array('original_width' => 320, 'original_height' => 200); $this->object->setMetadata($meta); $this->assertEquals($meta, $this->object->getMetadata()); $this->assertEquals(320, $this->object->getMetadataValue('original_width')); $this->assertEquals(200, $this->object->getMetadataValue('original_height')); $this->object->setMetadataValue('original_width', 640); $this->assertEquals(640, $this->object->getMetadataValue('original_width')); }