コード例 #1
0
ファイル: MediaTest.php プロジェクト: mindgruve/derby
 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());
 }
コード例 #2
0
ファイル: Alias.php プロジェクト: mindgruve/derby
 public function __construct(MediaInterface $target, MetaData $metaData)
 {
     $this->target = $target;
     parent::__construct($metaData);
 }
コード例 #3
0
 /**
  * @param $key
  * @param ReadOnlyRemoteFileAdapterInterface $adapter
  */
 public function __construct($key, ReadOnlyRemoteFileAdapterInterface $adapter)
 {
     parent::__construct($key, $adapter);
 }
コード例 #4
0
ファイル: LocalFile.php プロジェクト: mindgruve/derby
 /**
  * @param $key
  * @param LocalFileAdapterInterface $adapter
  */
 public function __construct($key, LocalFileAdapterInterface $adapter)
 {
     parent::__construct($key, $adapter);
 }