/**
  * @param string $image
  * @param string $url
  * @param string $alt
  * @param string $id
  * @param string $class
  * @param string $style
  *
  * @dataProvider displayImage
  */
 public function testRenderMedia($image, $url, $alt, $id = '', $class = '', $style = '')
 {
     Phake::when($this->media)->getName()->thenReturn($image);
     parent::testRenderMedia($image, $url, $alt);
     $this->strategy->renderMedia($this->media, array('id' => $id, 'class' => $class, 'style' => $style));
     Phake::verify($this->templating)->render('OpenOrchestraMediaBundle:RenderMedia:default.html.twig', array('media_url' => $url, 'media_name' => $image, 'id' => $id, 'class' => $class, 'style' => $style));
 }
 /**
  * @param string $image
  * @param string $url
  * @param string $alt
  *
  * @dataProvider displayImage
  */
 public function testDisplayMedia($image, $url, $alt)
 {
     parent::testDisplayMedia($image, $url, $alt);
     Phake::when($this->media)->getFilesystemName()->thenReturn($image);
     Phake::when($this->media)->getAlt(Phake::anyParameters())->thenReturn($alt);
     $format = 'preview';
     $this->strategy->displayMedia($this->media);
     Phake::verify($this->templating)->render('OpenOrchestraMediaBundle:BBcode/FullDisplay:image.html.twig', array('media_url' => $url, 'media_alt' => $alt));
 }
 /**
  * @return array
  */
 public function provideMediaTypes()
 {
     return array_merge(parent::provideMediaTypes(), array('pdf' => array('pdf', true)));
 }
 /**
  * @return array
  */
 public function provideMimeTypes()
 {
     return array_merge(parent::provideMimeTypes(), array(array('audio/mpeg', true), array('audio/mp3', true)));
 }
 /**
  * @return array
  */
 public function provideMimeTypes()
 {
     return array_merge(parent::provideMimeTypes(), array(array('application/pdf', true), array('video/mpeg', false), array('video/quicktime', false)));
 }