@@ -145,6 +145,9 @@ |
||
145 | 145 | return isset($this->metadata[$key]) ? $this->metadata[$key] : array(); |
146 | 146 | } |
147 | 147 | |
148 | + /** |
|
149 | + * @param string $key |
|
150 | + */ |
|
148 | 151 | private function find($key, array $fields = array()) |
149 | 152 | { |
150 | 153 | return $this->gridFS->findOne($key, $fields); |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace spec\Gaufrette\Adapter\Aws; |
4 | 4 | |
5 | 5 | use PhpSpec\ObjectBehavior; |
6 | -use Prophecy\Argument; |
|
7 | 6 | |
8 | 7 | class S3Spec extends ObjectBehavior |
9 | 8 | { |
@@ -21,6 +21,9 @@ discard block |
||
21 | 21 | protected $metadata = array(); |
22 | 22 | protected $detectContentType; |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $bucket |
|
26 | + */ |
|
24 | 27 | public function __construct(S3Client $service, $bucket, array $options = array(), $detectContentType = false) |
25 | 28 | { |
26 | 29 | $this->service = $service; |
@@ -282,6 +285,9 @@ discard block |
||
282 | 285 | return true; |
283 | 286 | } |
284 | 287 | |
288 | + /** |
|
289 | + * @param string $key |
|
290 | + */ |
|
285 | 291 | protected function getOptions($key, array $options = array()) |
286 | 292 | { |
287 | 293 | $options['ACL'] = $this->options['acl']; |
@@ -297,6 +303,9 @@ discard block |
||
297 | 303 | return $options; |
298 | 304 | } |
299 | 305 | |
306 | + /** |
|
307 | + * @return string |
|
308 | + */ |
|
300 | 309 | protected function computePath($key) |
301 | 310 | { |
302 | 311 | if (empty($this->options['directory'])) { |
@@ -23,8 +23,8 @@ |
||
23 | 23 | public function testCreatesBucketIfMissing() |
24 | 24 | { |
25 | 25 | $mock = new MockPlugin(array( |
26 | - new Response(404), // Head bucket response |
|
27 | - new Response(200), // Create bucket response |
|
26 | + new Response(404), // Head bucket response |
|
27 | + new Response(200), // Create bucket response |
|
28 | 28 | new Response(200, array(), 'foo') // Get object response |
29 | 29 | )); |
30 | 30 | $client = $this->getClient(); |