AwsS3Spec.php 609 B

1234567891011121314151617181920212223242526272829303132
  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. }