Просмотр исходного кода

DX: drop hack for Prophecy incompatibility

Dariusz Ruminski 3 лет назад
Родитель
Сommit
6cb274a019
2 измененных файлов с 1 добавлено и 12 удалено
  1. 1 1
      composer.json
  2. 0 11
      tests/Linter/ProcessLintingResultTest.php

+ 1 - 1
composer.json

@@ -40,7 +40,7 @@
         "php-cs-fixer/accessible-object": "^1.1",
         "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2",
         "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1",
-        "phpspec/prophecy": "^1.10.3",
+        "phpspec/prophecy": "^1.15",
         "phpspec/prophecy-phpunit": "^1.1 || ^2.0",
         "phpunit/phpunit": "^8.5.21 || ^9.5",
         "phpunitgoodpractices/polyfill": "^1.5",

+ 0 - 11
tests/Linter/ProcessLintingResultTest.php

@@ -26,17 +26,6 @@ use Symfony\Component\Process\Process;
  */
 final class ProcessLintingResultTest extends TestCase
 {
-    public static function setUpBeforeClass(): void
-    {
-        parent::setUpBeforeClass();
-
-        /** @TODO drop me after Prophecy issue is soled: https://github.com/phpspec/prophecy/issues/527 */
-        $type = (new \ReflectionMethod(\Symfony\Component\Process\Process::class, 'mustRun'))->getReturnType();
-        if ($type instanceof \ReflectionNamedType && 'static' === $type->getName()) {
-            static::markTestSkipped('Prophecy cannot handle the static return type.');
-        }
-    }
-
     /**
      * @doesNotPerformAssertions
      */