From ceb9f239f9c22f452bc09814cc4ad0700b26078e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin?= Date: Thu, 7 Dec 2023 16:19:07 +0100 Subject: [PATCH] fix: make commande to remove phpspec adapter (#707) * fix: make commande to remove phpspec adapter * Update Makefile Co-authored-by: Pierre PLAZANET --------- Co-authored-by: Pierre PLAZANET --- Makefile | 7 ++++--- ...lobStorage.php => AzureBlobStorageSpec.php} | 2 +- spec/Gaufrette/Adapter/ZipSpec.php | 18 ------------------ 3 files changed, 5 insertions(+), 22 deletions(-) rename spec/Gaufrette/Adapter/{AzureBlobStorage.php => AzureBlobStorageSpec.php} (99%) delete mode 100644 spec/Gaufrette/Adapter/ZipSpec.php diff --git a/Makefile b/Makefile index b4942d832..f18c653d9 100644 --- a/Makefile +++ b/Makefile @@ -53,13 +53,14 @@ docker.php-cs-fix: ## Run CS fixer # ------- # -remove-phpspec: ## Remove adapter specs (allows you to run test suite without adapters deps) +remove-phpspec: ## Remove adapter specs (allows you to run test suite without adapters that needs deps) rm spec/Gaufrette/Adapter/AsyncAwsS3Spec.php rm spec/Gaufrette/Adapter/AwsS3Spec.php - rm spec/Gaufrette/Adapter/GoogleCloudStorageSpec.php + rm spec/Gaufrette/Adapter/AzureBlobStorageSpec.php + rm -r spec/Gaufrette/Adapter/AzureBlobStorage rm spec/Gaufrette/Adapter/DoctrineDbalSpec.php rm spec/Gaufrette/Adapter/FlysystemSpec.php - rm -r spec/Gaufrette/Adapter/AzureBlobStorage + rm spec/Gaufrette/Adapter/GoogleCloudStorageSpec.php rm spec/Gaufrette/Adapter/GridFSSpec.php rm spec/Gaufrette/Adapter/PhpseclibSftpSpec.php diff --git a/spec/Gaufrette/Adapter/AzureBlobStorage.php b/spec/Gaufrette/Adapter/AzureBlobStorageSpec.php similarity index 99% rename from spec/Gaufrette/Adapter/AzureBlobStorage.php rename to spec/Gaufrette/Adapter/AzureBlobStorageSpec.php index c6cee8572..977cdcf56 100644 --- a/spec/Gaufrette/Adapter/AzureBlobStorage.php +++ b/spec/Gaufrette/Adapter/AzureBlobStorageSpec.php @@ -7,7 +7,7 @@ use WindowsAzure\Blob\Models\Blob; use WindowsAzure\Common\ServiceException; -class AzureBlobStorage extends ObjectBehavior +class AzureBlobStorageSpec extends ObjectBehavior { /** * @param \Gaufrette\Adapter\AzureBlobStorage\BlobProxyFactoryInterface $blobProxyFactory diff --git a/spec/Gaufrette/Adapter/ZipSpec.php b/spec/Gaufrette/Adapter/ZipSpec.php deleted file mode 100644 index 76bb1c13a..000000000 --- a/spec/Gaufrette/Adapter/ZipSpec.php +++ /dev/null @@ -1,18 +0,0 @@ -beConstructedWith('somefile'); - } - - function it_is_adapter() - { - $this->shouldHaveType('Gaufrette\Adapter'); - } -}