Exemple #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());
 }
Exemple #2
0
 public function __construct(MediaInterface $target, MetaData $metaData)
 {
     $this->target = $target;
     parent::__construct($metaData);
 }
 /**
  * @param $key
  * @param ReadOnlyRemoteFileAdapterInterface $adapter
  */
 public function __construct($key, ReadOnlyRemoteFileAdapterInterface $adapter)
 {
     parent::__construct($key, $adapter);
 }
Exemple #4
0
 /**
  * @param $key
  * @param LocalFileAdapterInterface $adapter
  */
 public function __construct($key, LocalFileAdapterInterface $adapter)
 {
     parent::__construct($key, $adapter);
 }