public function testCanGetPropertiesFromImageFiltered()
{
$listener = new ExifMetadata(['allowedTags' => ['exif:Flash', 'exif:YResolution']]);
$image = new Image();
$image->setBlob(file_get_contents(FIXTURES_DIR . '/exif-logo.jpg'));
$request = $this->getMock('Imbo\\Http\\Request\\Request');
$request->expects($this->once())->method('getImage')->will($this->returnValue($image));
$event = $this->getMock('Imbo\\EventManager\\Event');
$event->expects($this->once())->method('getRequest')->will($this->returnValue($request));
$properties = $listener->populate($event);
$this->assertSame('16', $properties['exif:Flash']);
$this->assertSame('72/1', $properties['exif:YResolution']);
$this->assertArrayNotHasKey('exif:GPSAltitude', $properties);
}