/**
  * Test get media format url
  */
 public function testGetMediaFormatUrl()
 {
     $media = $this->manager->getMediaFormatUrl($this->media, 'phake_format');
     Phake::verify($this->displayMediaStrategie1)->getMediaFormatUrl($this->media, 'phake_format');
     Phake::verify($this->displayMediaStrategie2, Phake::never())->getMediaFormatUrl($this->media, 'phake_format');
     $this->assertInstanceOf('OpenOrchestra\\Media\\Model\\MediaInterface', $media);
 }
 /**
  * Test get media format url with default strategy
  */
 public function testGetMediaFormatUrlDefaultStrategy()
 {
     Phake::when($this->displayMediaStrategy1)->support($this->media)->thenReturn(false);
     $media = $this->manager->getMediaFormatUrl($this->media, 'phake_format');
     $this->assertSupportChain();
     Phake::verify($this->defaultStrategy)->getMediaFormatUrl($this->media, 'phake_format');
     $this->assertSame($this->phakeHtml['defaultStrategy']['getMediaFormatUrl'], $media);
 }