getMetadata() public method

Get the metadata
public getMetadata ( ) : array
return array
Beispiel #1
0
 /**
  * @covers Imbo\Model\Image::setMetadata
  * @covers Imbo\Model\Image::getMetadata
  */
 public function testCanSetAndGetMetadata()
 {
     $this->assertNull($this->image->getMetadata());
     $data = ['foo' => 'bar', 'bar' => 'foo'];
     $this->assertSame($this->image, $this->image->setMetadata($data));
     $this->assertSame($data, $this->image->getMetadata());
 }