diff --git a/composer.json b/composer.json index 1c5135f..4d3f1b4 100755 --- a/composer.json +++ b/composer.json @@ -18,11 +18,11 @@ "ext-simplexml": "*", "composer/semver": "^1.4", "ocramius/package-versions": "^1.3", - "phpunit/phpunit": "^6.0 || ^7.0 || ^8.0 || ^9.0", + "phpunit/phpunit": "^7.5 || ^8.0 || ^9.0", "vimeo/psalm": "^3.6.2 || dev-master" }, "require-dev": { - "codeception/base": "^2.5", + "codeception/codeception": "^4.0.3", "squizlabs/php_codesniffer": "^3.3.1", "weirdan/codeception-psalm-module": "^0.4.0" }, diff --git a/src/Plugin.php b/src/Plugin.php index c34f272..cd3bd08 100755 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -15,10 +15,7 @@ class Plugin implements PluginEntryPointInterface /** @return void */ public function __invoke(RegistrationInterface $psalm, SimpleXMLElement $config = null) { - $psalm->addStubFile(__DIR__ . '/../stubs/Assert.phpstub'); - if ($this->packageVersionIs('phpunit/phpunit', '>=', '7.5')) { - $psalm->addStubFile(__DIR__ . '/../stubs/Assert_75.phpstub'); - } + $psalm->addStubFile(__DIR__ . '/../stubs/Assert_75.phpstub'); $psalm->addStubFile(__DIR__ . '/../stubs/TestCase.phpstub'); $psalm->addStubFile(__DIR__ . '/../stubs/MockBuilder.phpstub'); $psalm->addStubFile(__DIR__ . '/../stubs/InvocationMocker.phpstub'); diff --git a/stubs/Assert.phpstub b/stubs/Assert.phpstub deleted file mode 100644 index 88a86ef..0000000 --- a/stubs/Assert.phpstub +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - - - """ - And I have the following code preamble - """ - i = $this->prophesize(I::class); } @@ -712,7 +712,7 @@ Feature: TestCase private $i; /** @return void */ - public function setUp() { + public function setUp(): void { $this->i = $this->prophesize(I::class); } @@ -739,7 +739,7 @@ Feature: TestCase protected $i; /** @return void */ - public function setUp() { + public function setUp(): void { $this->i = $this->prophesize(I::class); } }