Example #1
0
 public function testConstructor()
 {
     $key = 'foo';
     $adapter = Mockery::mock(self::$fileAdapterInterface);
     $sut = new Media($key, $adapter);
     $this->assertEquals($key, $sut->getKey());
     $this->assertEquals($adapter, $sut->getAdapter());
 }
Example #2
0
 public function __construct(MediaInterface $target, MetaData $metaData)
 {
     $this->target = $target;
     parent::__construct($metaData);
 }
Example #3
0
 /**
  * @param $key
  * @param ReadOnlyRemoteFileAdapterInterface $adapter
  */
 public function __construct($key, ReadOnlyRemoteFileAdapterInterface $adapter)
 {
     parent::__construct($key, $adapter);
 }
Example #4
0
 /**
  * @param $key
  * @param LocalFileAdapterInterface $adapter
  */
 public function __construct($key, LocalFileAdapterInterface $adapter)
 {
     parent::__construct($key, $adapter);
 }