AwsS3Spec.php 609 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace spec\Gaufrette\Adapter;
  3. use PhpSpec\ObjectBehavior;
  4. use Prophecy\Argument;
  5. class AwsS3Spec extends ObjectBehavior
  6. {
  7. /**
  8. * @param \Aws\S3\S3Client $service
  9. */
  10. function let($service)
  11. {
  12. $this->beConstructedWith($service, 'bucketName');
  13. }
  14. function it_is_initializable()
  15. {
  16. $this->shouldHaveType('Gaufrette\Adapter\AwsS3');
  17. }
  18. function it_is_adapter()
  19. {
  20. $this->shouldHaveType('Gaufrette\Adapter');
  21. }
  22. function it_supports_metadata()
  23. {
  24. $this->shouldHaveType('Gaufrette\Adapter\MetadataSupporter');
  25. }
  26. }