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()); }
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); }
/** * @param $key * @param LocalFileAdapterInterface $adapter */ public function __construct($key, LocalFileAdapterInterface $adapter) { parent::__construct($key, $adapter); }