{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/4978","repository_url":"https://api.github.com/repos/Codeception/Codeception","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/4978/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/4978/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/4978/events","html_url":"https://github.com/Codeception/Codeception/issues/4978","id":323955293,"number":4978,"title":"Fatal error: Declaration of Codeception\\Test\\Test::run(?PHPUnit\\Framework\\TestResult $result = NULL) must be compatible with PHPUnit\\Framework\\Test::run","user":{"login":"leglesslizard","id":6690398,"avatar_url":"https://avatars0.githubusercontent.com/u/6690398?v=4","gravatar_id":"","url":"https://api.github.com/users/leglesslizard","html_url":"https://github.com/leglesslizard","followers_url":"https://api.github.com/users/leglesslizard/followers","following_url":"https://api.github.com/users/leglesslizard/following{/other_user}","gists_url":"https://api.github.com/users/leglesslizard/gists{/gist_id}","starred_url":"https://api.github.com/users/leglesslizard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leglesslizard/subscriptions","organizations_url":"https://api.github.com/users/leglesslizard/orgs","repos_url":"https://api.github.com/users/leglesslizard/repos","events_url":"https://api.github.com/users/leglesslizard/events{/privacy}","received_events_url":"https://api.github.com/users/leglesslizard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-17T10:04:03Z","updated_at":"2018-05-17T10:16:54Z","closed_at":null,"author_association":"NONE","body":"#### What are you trying to achieve?\r\nRun all tests\r\n\r\n#### What do you get instead?\r\nFatal Error\r\n\r\n```bash\r\nFatal error: Declaration of Codeception\\Test\\Test::run(?PHPUnit\\Framework\\TestResult $result = NULL) must be compatible with PHPUnit\\Framework\\Test::run(?PHPUnit\\Framework\\TestResult $result = NULL): PHPUnit\\Framework\\TestResult in /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/codeception/codeception/src/Codeception/Test/Test.php on line 18\r\n\r\nCall Stack:\r\n    0.0003     346368   1. {main}() /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/codeception/codeception/codecept:0\r\n    0.3112    2053088   2. Codeception\\Application->run() /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/codeception/codeception/codecept:42\r\n    0.3112    2053088   3. Symfony\\Component\\Console\\Application->run() /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/codeception/codeception/src/Codeception/Application.php:108\r\n    0.3288    2135752   4. Symfony\\Component\\Console\\Application->doRun() /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/symfony/console/Application.php:148\r\n    0.3289    2135752   5. Symfony\\Component\\Console\\Application->doRunCommand() /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/symfony/console/Application.php:248\r\n    0.3290    2135752   6. Symfony\\Component\\Console\\Command\\Command->run() /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/symfony/console/Application.php:946\r\n    0.3296    2142736   7. Codeception\\Command\\Run->execute() /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/symfony/console/Command/Command.php:252\r\n    0.3781    2451416   8. Codeception\\Command\\Run->runSuites() /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/codeception/codeception/src/Codeception/Command/Run.php:361\r\n    0.3781    2451416   9. Codeception\\Codecept->run() /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/codeception/codeception/src/Codeception/Command/Run.php:466\r\n    0.3869    2459592  10. Codeception\\Codecept->runSuite() /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/codeception/codeception/src/Codeception/Codecept.php:158\r\n    1.7759    4340168  11. Codeception\\SuiteManager->loadTests() /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/codeception/codeception/src/Codeception/Codecept.php:188\r\n    1.8535    5369776  12. Codeception\\Test\\Loader->loadTests() /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/codeception/codeception/src/Codeception/SuiteManager.php:95\r\n    1.8590    5423544  13. Codeception\\Test\\Loader\\Cest->loadTests() /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/codeception/codeception/src/Codeception/Test/Loader.php:134\r\n    1.8642    5426536  14. spl_autoload_call() /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/codeception/codeception/src/Codeception/Test/Loader/Cest.php:98\r\n    1.8642    5426584  15. Composer\\Autoload\\ClassLoader->loadClass() /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/codeception/codeception/src/Codeception/Test/Loader/Cest.php:98\r\n    1.8647    5426744  16. Composer\\Autoload\\includeFile() /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/composer/ClassLoader.php:322\r\n    1.8670    5428824  17. include('/app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/codeception/codeception/src/Codeception/Test/Cest.php') /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/composer/ClassLoader.php:440\r\n    1.8670    5428824  18. spl_autoload_call() /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/codeception/codeception/src/Codeception/Test/Cest.php:16\r\n    1.8670    5428872  19. Composer\\Autoload\\ClassLoader->loadClass() /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/codeception/codeception/src/Codeception/Test/Cest.php:16\r\n    1.8674    5429032  20. Composer\\Autoload\\includeFile() /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/composer/ClassLoader.php:322\r\n    1.8689    5430480  21. include('/app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/codeception/codeception/src/Codeception/Test/Test.php') /app/public/wp-content/plugins/woocommerce-waitlist/tests/vendor/composer/ClassLoader.php:440\r\n```\r\n### Details\r\n\r\n* Codeception version: 2.4.1\r\n* PHP Version: 7.1.4\r\n* Operating System: macOS 10.13.4\r\n* Installation type: Composer\r\n* List of installed packages (`composer show`)\r\n* Suite configuration:\r\n\r\n```yml\r\npaths:\r\n    tests: tests\r\n    output: tests/_output\r\n    data: tests/_data\r\n    support: tests/_support\r\n    envs: tests/_envs\r\nactor_suffix: Tester\r\nextensions:\r\n    enabled:\r\n        - Codeception\\Extension\\RunFailed\r\n    commands:\r\n        - Codeception\\Command\\GenerateWPUnit\r\n        - Codeception\\Command\\GenerateWPRestApi\r\n        - Codeception\\Command\\GenerateWPRestController\r\n        - Codeception\\Command\\GenerateWPRestPostTypeController\r\n        - Codeception\\Command\\GenerateWPAjax\r\n        - Codeception\\Command\\GenerateWPCanonical\r\n        - Codeception\\Command\\GenerateWPXMLRPC\r\n        - Codeception\\Command\\DbSnapshot\r\n        - tad\\Codeception\\Command\\SearchReplace\r\n```\r\n\r\n### Installed components\r\nDump of composer show:\r\n\r\n```bash\r\nantecedent/patchwork               2.1.8     Method redefinition (monkey-patching) functionality for PHP.\r\nbacon/bacon-string-utils           1.1.0     BaconStringUtils contain utitilies to work with strings.\r\nbehat/gherkin                      v4.5.1    Gherkin DSL parser for PHP 5.3\r\ncodeception/codeception            2.4.1     BDD-style testing framework\r\ncodeception/phpunit-wrapper        7.1.2     PHPUnit classes used by Codeception\r\ncodeception/stub                   1.0.4     Flexible Stub wrapper for PHPUnit's Mock Builder\r\ncomposer/ca-bundle                 1.1.1     Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.\r\ncomposer/composer                  1.6.5     Composer helps you declare, manage and install dependencies of PHP projects, ensuring you have the right stack everywhere.\r\ncomposer/semver                    1.4.2     Semver library that offers utilities, version constraint parsing and validation.\r\ncomposer/spdx-licenses             1.4.0     SPDX licenses list and validation library.\r\ndg/mysql-dump                      v1.4.0    MySQL database dump.\r\ndoctrine/inflector                 v1.3.0    Common String Manipulations with regard to casing and singular/plural rules.\r\ndoctrine/instantiator              1.1.0     A small, lightweight utility to instantiate objects in PHP without invoking their constructors\r\nfacebook/webdriver                 1.6.0     A PHP client for Selenium WebDriver\r\ngumlet/php-image-resize            1.8.0     PHP class to re-size and scale images\r\nguzzlehttp/guzzle                  6.3.3     Guzzle is a PHP HTTP client library\r\nguzzlehttp/promises                v1.3.1    Guzzle promises library\r\nguzzlehttp/psr7                    1.4.2     PSR-7 message implementation that also provides common utility methods\r\nhautelook/phpass                   0.3.5     Portable PHP password hashing framework\r\nilluminate/contracts               v5.6.22   The Illuminate Contracts package.\r\nilluminate/support                 v5.6.22   The Illuminate Support package.\r\njakoch/phantomjs-installer         2.1.1-p08 A Composer package which installs the PhantomJS binary (Linux, Windows, Mac) into `/bin` of your project.\r\njonnyw/php-phantomjs               v4.6.1    A PHP wrapper for loading pages through PhantomJS\r\njustinrainbow/json-schema          5.2.7     A library to validate a json schema.\r\nlucatume/codeception-setup-local   1.0.3     Flexible local setup for Codeception\r\nlucatume/wp-browser                1.24.4    WordPress extension of the PhpBrowser class.\r\nlucatume/wp-browser-commons        1.2.8.2   Common libraries of the WP-Browser package.\r\nmikemclin/laravel-wp-password      2.0.1     Laravel package that checks and creates WordPress password hashes\r\nmustache/mustache                  v2.12.0   A Mustache implementation in PHP.\r\nmyclabs/deep-copy                  1.7.0     Create deep copies (clones) of your objects\r\nnb/oxymel                          v0.1.0    A sweet XML builder\r\nnesbot/carbon                      1.27.0    A simple API extension for DateTime.\r\nphar-io/manifest                   1.0.1     Component for reading phar.io manifest information from a PHP Archive (PHAR)\r\nphar-io/version                    1.0.1     Library for handling version information and constraints\r\nphpdocumentor/reflection-common    1.0.1     Common reflection classes used by phpdocumentor to reflect the code structure\r\nphpdocumentor/reflection-docblock  4.3.0     With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in...\r\nphpdocumentor/type-resolver        0.4.0     \r\nphpspec/prophecy                   1.7.6     Highly opinionated mocking framework for PHP 5.3+\r\nphpunit/php-code-coverage          6.0.4     Library that provides collection, processing, and rendering functionality for PHP code coverage information.\r\nphpunit/php-file-iterator          1.4.5     FilterIterator implementation that filters files based on a list of suffixes.\r\nphpunit/php-text-template          1.2.1     Simple template engine.\r\nphpunit/php-timer                  2.0.0     Utility class for timing\r\nphpunit/php-token-stream           3.0.0     Wrapper around PHP's tokenizer extension.\r\nphpunit/phpunit                    7.1.5     The PHP Unit Testing framework.\r\nphpunit/phpunit-mock-objects       6.1.1     Mock Object library for PHPUnit\r\npsr/container                      1.0.0     Common Container Interface (PHP FIG PSR-11)\r\npsr/http-message                   1.0.1     Common interface for HTTP messages\r\npsr/log                            1.0.2     Common interface for logging libraries\r\npsr/simple-cache                   1.0.1     Common interfaces for simple caching\r\nramsey/array_column                1.1.3     Provides functionality for array_column() to projects using PHP earlier than version 5.5.\r\nrmccue/requests                    v1.7.0    A HTTP library written in PHP, for human beings.\r\nsebastian/code-unit-reverse-lookup 1.0.1     Looks up which function or method a line of code belongs to\r\nsebastian/comparator               3.0.0     Provides the functionality to compare PHP values for equality\r\nsebastian/diff                     3.0.0     Diff implementation\r\nsebastian/environment              3.1.0     Provides functionality to handle HHVM/PHP environments\r\nsebastian/exporter                 3.1.0     Provides the functionality to export PHP variables for visualization\r\nsebastian/global-state             2.0.0     Snapshotting of global state\r\nsebastian/object-enumerator        3.0.3     Traverses array structures and object graphs to enumerate all referenced objects\r\nsebastian/object-reflector         1.1.1     Allows reflection of object attributes, including inherited and non-public ones\r\nsebastian/recursion-context        3.0.0     Provides functionality to recursively process PHP variables\r\nsebastian/resource-operations      1.0.0     Provides a list of PHP built-in functions that operate on resources\r\nsebastian/version                  2.0.1     Library that helps with managing the version number of Git-hosted PHP projects\r\nseld/cli-prompt                    1.0.3     Allows you to prompt for user input on the command line, and optionally hide the characters they type\r\nseld/jsonlint                      1.7.1     JSON Linter\r\nseld/phar-utils                    1.0.1     PHAR file format utilities, for when PHP phars you up\r\nsymfony/browser-kit                v4.0.9    Symfony BrowserKit Component\r\nsymfony/config                     v3.4.9    Symfony Config Component\r\nsymfony/console                    v3.4.9    Symfony Console Component\r\nsymfony/css-selector               v4.0.9    Symfony CssSelector Component\r\nsymfony/debug                      v3.4.9    Symfony Debug Component\r\nsymfony/dependency-injection       v3.4.9    Symfony DependencyInjection Component\r\nsymfony/dom-crawler                v4.0.9    Symfony DomCrawler Component\r\nsymfony/event-dispatcher           v3.4.9    Symfony EventDispatcher Component\r\nsymfony/filesystem                 v2.8.39   Symfony Filesystem Component\r\nsymfony/finder                     v3.4.9    Symfony Finder Component\r\nsymfony/polyfill-mbstring          v1.8.0    Symfony polyfill for the Mbstring extension\r\nsymfony/process                    v3.4.9    Symfony Process Component\r\nsymfony/translation                v3.4.9    Symfony Translation Component\r\nsymfony/yaml                       v3.4.9    Symfony Yaml Component\r\ntheseer/tokenizer                  1.1.0     A small library for converting tokenized PHP source code into XML and potentially other formats\r\ntwig/twig                          v1.35.3   Twig, the flexible, fast, and secure template language for PHP\r\nvlucas/phpdotenv                   v2.4.0    Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.\r\nwebmozart/assert                   1.3.0     Assertions to validate method input/output with nice error messages.\r\nwp-cli/autoload-splitter           v0.1.5    Composer plugin for splitting a generated autoloader into two distinct parts.\r\nwp-cli/cache-command               v1.0.6    Manages object and transient caches.\r\nwp-cli/checksum-command            v1.0.9    Verifies file integrity by comparing to published checksums.\r\nwp-cli/config-command              v1.2.0    Generates and reads the wp-config.php file.\r\nwp-cli/core-command                v1.0.9    Downloads, installs, updates, and manages a WordPress installation.\r\nwp-cli/cron-command                v1.0.5    Tests, runs, and deletes WP-Cron events; manages WP-Cron schedules.\r\nwp-cli/db-command                  v1.3.3    Performs basic database operations using credentials stored in wp-config.php.\r\nwp-cli/embed-command               v1.0.0    Inspects oEmbed providers, clears embed cache, and more.\r\nwp-cli/entity-command              v1.2.0    Manage WordPress core entities.\r\nwp-cli/eval-command                v1.0.5    Executes arbitrary PHP code or files.\r\nwp-cli/export-command              v1.0.6    Exports WordPress content to a WXR file.\r\nwp-cli/extension-command           v1.1.10   Manages plugins and themes, including installs, activations, and updates.\r\nwp-cli/import-command              v1.0.6    Imports content from a given WXR file.\r\nwp-cli/language-command            v1.0.6    Installs, activates, and manages language packs.\r\nwp-cli/media-command               v1.1.4    Imports files as attachments, regenerates thumbnails, or lists registered image sizes.\r\nwp-cli/mustangostang-spyc          0.6.3     A simple YAML loader/dumper class for PHP (WP-CLI fork)\r\nwp-cli/package-command             v1.0.13   Lists, installs, and removes WP-CLI packages.\r\nwp-cli/php-cli-tools               v0.11.9   Console utilities for PHP\r\nwp-cli/rewrite-command             v1.0.5    Lists or flushes the site's rewrite rules, updates the permalink structure.\r\nwp-cli/role-command                v1.1.0    Adds, removes, lists, and resets roles and capabilities.\r\nwp-cli/scaffold-command            v1.1.3    Generates code for post types, taxonomies, blocks, plugins, child themes, etc.\r\nwp-cli/search-replace-command      v1.3.0    Searches/replaces strings in the database.\r\nwp-cli/server-command              v1.0.9    Launches PHP's built-in web server for a specific WordPress installation.\r\nwp-cli/shell-command               v1.0.5    Opens an interactive PHP console for running and testing PHP code.\r\nwp-cli/super-admin-command         v1.0.6    Lists, adds, or removes super admin users on a multisite installation.\r\nwp-cli/widget-command              v1.0.5    Adds, moves, and removes widgets; lists sidebars.\r\nwp-cli/wp-cli                      v1.5.1    The command line interface for WordPress\r\nwp-cli/wp-config-transformer       v1.2.1    Programmatically edit a wp-config.php file.\r\nxamin/handlebars.php               v0.10.4   Handlebars processor for php\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/comments/389818257","html_url":"https://github.com/Codeception/Codeception/issues/4978#issuecomment-389818257","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/4978","id":389818257,"user":{"login":"leglesslizard","id":6690398,"avatar_url":"https://avatars0.githubusercontent.com/u/6690398?v=4","gravatar_id":"","url":"https://api.github.com/users/leglesslizard","html_url":"https://github.com/leglesslizard","followers_url":"https://api.github.com/users/leglesslizard/followers","following_url":"https://api.github.com/users/leglesslizard/following{/other_user}","gists_url":"https://api.github.com/users/leglesslizard/gists{/gist_id}","starred_url":"https://api.github.com/users/leglesslizard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leglesslizard/subscriptions","organizations_url":"https://api.github.com/users/leglesslizard/orgs","repos_url":"https://api.github.com/users/leglesslizard/repos","events_url":"https://api.github.com/users/leglesslizard/events{/privacy}","received_events_url":"https://api.github.com/users/leglesslizard/received_events","type":"User","site_admin":false},"created_at":"2018-05-17T10:16:54Z","updated_at":"2018-05-17T10:16:54Z","author_association":"NONE","body":"Got this running again by altering my composer.json to:\r\n\r\n```\r\n\"require-dev\": {\r\n        \"lucatume/wp-browser\": \"~1.21\",\r\n        \"codeception/codeception\": \"2.*\",\r\n        \"jonnyw/php-phantomjs\": \"4.*\",\r\n        \"phpunit/phpunit\": \"6.*\"\r\n    },\r\n```\r\n\r\nThanks for the tip :)\r\n"}}
{"actor":{"display_login":"leglesslizard"}}