/**
  * @test
  * @return void
  */
 public function imageAsImageListAddFilenameToImage()
 {
     $expected1 = 'foo.gif';
     $expected2 = 'bar.jpg';
     $this->fixture->addImage($expected1);
     $this->fixture->addImage($expected2);
     $this->assertSame(implode(',', array($expected1, $expected2)), $this->fixture->getImage());
 }
 /**
  * Move uploaded image and add to user
  *
  * @param \Evoweb\SfRegister\Domain\Model\FrontendUser $user
  * @return \Evoweb\SfRegister\Domain\Model\FrontendUser
  */
 protected function moveTempFile($user)
 {
     if ($imagePath = $this->fileService->moveTempFileToTempFolder()) {
         $user->addImage($imagePath);
     }
     return $user;
 }