piece / makegood

A continuous test runner for Eclipse PDT
https://github.com/piece/makegood/wiki
44 stars 17 forks source link

MakeGood with PHP 7 fail #91

Open maggo2801 opened 8 years ago

maggo2801 commented 8 years ago

Fatal error: Cannot use Stagehand\TestRunner\Util\String as String because 'String' is a special class name in /home/XXXX/eclipse-neon-php/plugins/com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510/resources/php/vendor/piece/stagehand-testrunner/src/DependencyInjection/Transformation/Transformation.php on line 46

fabicz commented 8 years ago

Run into same issue. Seems MakeGood project is dead as it doesnt support PHP7 nor PHPUnit 5+. RIP.

gtsiou commented 8 years ago

I was able to use MakeGood with Eclipse Oxygen but updating the composer.json is [eclipse-folder]/plugins/com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510/resources/php/ to be like :

{
    "require": {
        "php": ">=5.3.3",
        "piece/stagehand-testrunner": "4.2.0",
        "phpunit/phpunit": "5.5.*"
    },
    "scripts": {
        "post-autoload-dump": [
            "Stagehand\\TestRunner\\Composer\\Script::compile"
        ]
    }
}

and then I run composer update (in that folder). That will get is working properly.