AwsS3Spec.php 884 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace spec\Gaufrette\Adapter;
  3. use Aws\S3\S3Client;
  4. use Gaufrette\Adapter\MimeTypeProvider;
  5. use PhpSpec\ObjectBehavior;
  6. class AwsS3Spec extends ObjectBehavior
  7. {
  8. /**
  9. * @param \Aws\S3\S3Client $service
  10. */
  11. function let(S3Client $service)
  12. {
  13. $this->beConstructedWith($service, 'bucketName');
  14. }
  15. function it_is_initializable()
  16. {
  17. $this->shouldHaveType('Gaufrette\Adapter\AwsS3');
  18. }
  19. function it_is_adapter()
  20. {
  21. $this->shouldHaveType('Gaufrette\Adapter');
  22. }
  23. function it_supports_metadata()
  24. {
  25. $this->shouldHaveType('Gaufrette\Adapter\MetadataSupporter');
  26. }
  27. function it_supports_sizecalculator()
  28. {
  29. $this->shouldHaveType('Gaufrette\Adapter\SizeCalculator');
  30. }
  31. function it_provides_mime_type()
  32. {
  33. $this->shouldHaveType(MimeTypeProvider::class);
  34. }
  35. }