From 2fccab0d8ba7308c5f7706d7712e8181df8ee3ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin?= Date: Fri, 27 Oct 2023 15:32:50 +0200 Subject: [PATCH] fix: make commande to remove phpspec adapter --- Makefile | 6 +++--- ...lobStorage.php => AzureBlobStorageSpec.php} | 2 +- spec/Gaufrette/Adapter/PhpseclibSftpSpec.php | 13 +------------ spec/Gaufrette/Adapter/ZipSpec.php | 18 ------------------ 4 files changed, 5 insertions(+), 34 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..180d2f512 100644 --- a/Makefile +++ b/Makefile @@ -53,13 +53,13 @@ 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 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/PhpseclibSftpSpec.php b/spec/Gaufrette/Adapter/PhpseclibSftpSpec.php index 7f6703cdd..446aba341 100644 --- a/spec/Gaufrette/Adapter/PhpseclibSftpSpec.php +++ b/spec/Gaufrette/Adapter/PhpseclibSftpSpec.php @@ -11,21 +11,10 @@ } use Gaufrette\Filesystem; -use phpseclib\Net\SFTP as Base; -use PhpSpec\ObjectBehavior; - -class SFTP extends Base -{ - public function __construct() - { - } -} +use phpseclib\Net\SFTP; class PhpseclibSftpSpec extends ObjectBehavior { - /** - * @param \spec\Gaufrette\Adapter\SFTP $sftp - */ function let(SFTP $sftp) { $this->beConstructedWith($sftp, '/home/l3l0', false, 'l3lo', 'password'); 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'); - } -}