diff --git a/composer.json b/composer.json index 2503e1752..e977918c0 100644 --- a/composer.json +++ b/composer.json @@ -58,6 +58,7 @@ "dealerdirect/phpcodesniffer-composer-installer": "^1.0.0", "dominikb/composer-license-checker": "^2.4", "infection/infection": "^0.26.15", + "jangregor/phpstan-prophecy": "^1.0", "mikey179/vfsstream": "^1.6", "overtrue/phplint": "^9.0", "phpro/grumphp": "^1.13.0", diff --git a/composer.lock b/composer.lock index 752837902..5f3823bea 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "3930d33ef0070b2042c496fd527a7533", + "content-hash": "2f5a74f3e023e295a7246f5ff4cb58fd", "packages": [ { "name": "acquia/drupal-environment-detector", @@ -8888,6 +8888,71 @@ ], "time": "2023-02-05T21:47:26+00:00" }, + { + "name": "jangregor/phpstan-prophecy", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/Jan0707/phpstan-prophecy.git", + "reference": "2bc7ca9460395690c6bf7332bdfb2f25d5cae8e0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Jan0707/phpstan-prophecy/zipball/2bc7ca9460395690c6bf7332bdfb2f25d5cae8e0", + "reference": "2bc7ca9460395690c6bf7332bdfb2f25d5cae8e0", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0", + "phpstan/phpstan": "^1.0.0" + }, + "conflict": { + "phpspec/prophecy": "<1.7.0,>=2.0.0", + "phpunit/phpunit": "<6.0.0,>=10.0.0" + }, + "require-dev": { + "ergebnis/composer-normalize": "^2.1.1", + "ergebnis/license": "^1.0.0", + "ergebnis/php-cs-fixer-config": "~2.2.0", + "phpspec/prophecy": "^1.7.0", + "phpunit/phpunit": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0" + }, + "type": "phpstan-extension", + "extra": { + "phpstan": { + "includes": [ + "extension.neon" + ] + } + }, + "autoload": { + "psr-4": { + "JanGregor\\Prophecy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jan Gregor Emge-Triebel", + "email": "jan@jangregor.me" + } + ], + "description": "Provides a phpstan/phpstan extension for phpspec/prophecy", + "support": { + "issues": "https://github.com/Jan0707/phpstan-prophecy/issues", + "source": "https://github.com/Jan0707/phpstan-prophecy/tree/1.0.0" + }, + "funding": [ + { + "url": "https://github.com/localheinz", + "type": "github" + } + ], + "time": "2021-11-08T16:37:47+00:00" + }, { "name": "jean85/pretty-package-versions", "version": "2.0.5", diff --git a/src/ClientServiceInterface.php b/src/ClientServiceInterface.php deleted file mode 100644 index 34a450af4..000000000 --- a/src/ClientServiceInterface.php +++ /dev/null @@ -1,9 +0,0 @@ -mockPollCloudViaSsh($environmentsResponse); $this->command->sshHelper = $sshHelper->reveal(); - /** @var Filesystem|ObjectProphecy $fileSystem */ $fileSystem = $this->prophet->prophesize(Filesystem::class); $this->mockGenerateSshKey($localMachineHelper, $request['public_key']); $localMachineHelper->getLocalFilepath($this->passphraseFilepath)->willReturn($this->passphraseFilepath);