diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f9deb767cf..e66d0a4d5c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,6 +13,7 @@ jobs: env: extensions: curl, mbstring, openssl, pdo, pdo_sqlite SYMFONY_DEPRECATIONS_HELPER: weak + COMPOSER_ROOT_VERSION: 4.2.99 runs-on: ${{ matrix.os }} @@ -20,7 +21,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - php: ["5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0"] + php: ["5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1"] steps: - name: Checkout @@ -69,8 +70,8 @@ jobs: php codecept build php codecept run cli,unit,coverage --env COVERAGE=1 - - name: Run tests PHP 8.0 - if: matrix.php == '8.0' + - name: Run tests PHP 8.0, 8.1 + if: matrix.php == '8.0' || matrix.php == '8.1' run: | php -S 127.0.0.1:8000 -t tests/data/app -d pcov.directory=$(pwd)/tests/data/app >/dev/null 2>&1 & php codecept build @@ -82,6 +83,7 @@ jobs: env: extensions: curl, mbstring, openssl, pdo, pdo_sqlite SYMFONY_DEPRECATIONS_HELPER: weak + COMPOSER_ROOT_VERSION: 4.2.99 runs-on: ${{ matrix.os }} @@ -90,7 +92,7 @@ jobs: matrix: os: [windows-latest] - php: ["7.0", "7.1", "7.2", "7.3", "7.4", "8.0"] + php: ["7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1"] steps: - name: Checkout diff --git a/CHANGELOG-2.x.md b/CHANGELOG-2.x.md index d7156dc881..1b09b7038e 100644 --- a/CHANGELOG-2.x.md +++ b/CHANGELOG-2.x.md @@ -233,7 +233,7 @@ $I->fillField('password', new PasswordArgument('thisissecret')); * Use `Codeception\Stub` instead of `Codeception\Util\Stub` * Mocking methods `::once`, `::never`, etc moved to `Codeception\Stub\Expected` class * Calling mocking methods from `Codeception\Util\Stub` provides deprecation warning. - * Non-static API is [recommended to use for mocking](http://codeception.com/docs/05-UnitTests) + * Non-static API is [recommended to use for mocking](https://codeception.com/docs/05-UnitTests) * [WebDriver] Added `executeAsyncJS` action to run asynchronous scripts. * [WebDriver] Added second parameter to `executeJS` to pass additional arguments into JavaScript function. * [Yii2] `setCookie` signs cookies when signing enabled. #4656 By @SamMousa @@ -335,7 +335,7 @@ thanks to @carusogabriel for refactoring tests. #### 2.3.4 -* Added `@prepare` annotation to make realtime configuration for tests in Cest and Test classes. [See documentation](http://codeception.com/docs/06-ModulesAndHelpers#Runtime-Configuration-of-a-Test). +* Added `@prepare` annotation to make realtime configuration for tests in Cest and Test classes. [See documentation](https://codeception.com/docs/06-ModulesAndHelpers#Runtime-Configuration-of-a-Test). Example: disabling Doctrine2 database transaction for a test @@ -351,8 +351,8 @@ protected function disableTransactions(Doctrine2 $module) $module->_reconfigure(['cleanup' => false]); } ``` -* [WebDriver] **SmartWait**. Automatically waits for a few extra seconds for element to appear on a page before failing. Can reduce high usage of `wait*` methods. [See Documentation](http://codeception.com/docs/03-AcceptanceTests#SmartWait) -* Added [RunProcess extension](http://codeception.com/extensions#RunProcess). Use it to start/stop Selenium (or other process) automatically for a test suite. +* [WebDriver] **SmartWait**. Automatically waits for a few extra seconds for element to appear on a page before failing. Can reduce high usage of `wait*` methods. [See Documentation](https://codeception.com/docs/03-AcceptanceTests#SmartWait) +* Added [RunProcess extension](https://codeception.com/extensions#RunProcess). Use it to start/stop Selenium (or other process) automatically for a test suite. * [WebDriver] Customization improvements: * added `start` option to disable autostart of a browser for tests. (can be useful for Cloud testing setups) * added `_capabilities` method for setting desired capabilities in runtime (can be combined with `@prepare` annotation) @@ -436,7 +436,7 @@ codecept run --ext DotReporter * Fixed `$scenario->current('name')` #4154 by @Naktibalda * [AMQP] Documented parameters of `declareQueue`, `declareExchange` by @Naktibalda * [Doctrine2] Safe prefix aliases for `buildAssociationQuery` by @jfxninja. See #4195 -* Fixed output of failed step by @Naktibalda #4135 http://phptest.club/t/seeelement-wierd-fail-message/1470 +* Fixed output of failed step by @Naktibalda #4135 https://phptest.club/t/seeelement-wierd-fail-message/1470 * [WebDriver] fixed `friend->leave` method. Clearing base element on closing session. Fixes #4098 * [Symfony] Make symfony bootstrap.php.cache optional for php version > 7 by @patrickjahns * Gherkin: Command `gherkin:snippets` to generate stub function name for non-english features. By @kuntashov @@ -457,7 +457,7 @@ codecept run --ext DotReporter #### 2.2.10 * Prefer local composer installation if available. Solves issues with incompatibility between locally and globally installed or packaged in phar file Codeception dependencies. Fix by @Naktibalda See #3997 -* Added console completion by @gdscei. See [documentation](http://codeception.com/docs/07-AdvancedUsage#Shell-autocompletion) +* Added console completion by @gdscei. See [documentation](https://codeception.com/docs/07-AdvancedUsage#Shell-autocompletion) * [WebDriver] Fixed compatibility with `facebook/webdriver` 1.4.0 by @Naktibalda. See #4076 Fixes #4073 * Run a suite by its path #4079 @@ -504,7 +504,7 @@ public function _inject(UnitTester $unit) #### 2.2.9 * [Laravel5] **Laravel 5.4 support** by @janhenkgerritsen -* [WebDriver] Added `performOn` to wait for element, and run actions inside it. See [complete reference](http://codeception.com/docs/modules/WebDriver#performOn). #3986 +* [WebDriver] Added `performOn` to wait for element, and run actions inside it. See [complete reference](https://codeception.com/docs/modules/WebDriver#performOn). #3986 * [WebDriver] Improved error messages for `wait*` methods by @disc. See #3983 * [REST] Binary responses support by @spikyjt #3993 #3985 * `seeBinaryResponseEquals` assert that binary response matches a hash @@ -600,7 +600,7 @@ extensions: delete_successful: false ``` -* **Added dataprovider to Cest** format by @endo. See [updated documentation](http://codeception.com/docs/07-AdvancedUsage#Examples). +* **Added dataprovider to Cest** format by @endo. See [updated documentation](https://codeception.com/docs/07-AdvancedUsage#Examples). * Params loader refactored. Using `vlucas/phpdotenv` to parse .env files. Please install it if you don't have it yet. * Improved `generate:suite` command to generate actor file for suite. * HTML reporter: snapshot and screenshots paths made relative to make them accessible on CI. Fixes #3702 @@ -667,7 +667,7 @@ extensions: * [Memcache] Fixed `Memcache::dontSeeInMemcached`. By @sergeyklay * [ZF2] Zend Framework 3 Support. Made `init_autoloader` optional, because ZF3 uses composer for autoloading #3525. By @Naktibalda * [ZF2] Fixed accessing Doctrine Entity Manager when client is not initialized. By @chris1312. See #3524 -* [Yii2] Allow to load fixtures from `_fixtures` method of a testcase. [See reference](http://codeception.com/docs/modules/Yii2#Fixtures). Fixes usage of nested transactions #3520. By @kalyabin and @davertmik +* [Yii2] Allow to load fixtures from `_fixtures` method of a testcase. [See reference](https://codeception.com/docs/modules/Yii2#Fixtures). Fixes usage of nested transactions #3520. By @kalyabin and @davertmik * [Yii1] Fix private property accessible; allows to change urlManager class to subclass of CUrlManager. See @3287. By @amashigeseiji * Escaped tags in debug output by @Naktibalda. See #3507. Fixes #3495 * Fixed #3410: Wrong subSteps rendering in HTML ResultPrinter by @niclopez @@ -772,11 +772,11 @@ extensions: * *Breaking* `Codeception\TestCase` replaced with `Codeception\TestInterface` in code and in module signatures. * *Breaking* Cept/Cest classes are no longer extending `PHPUnit_Framework_TestCase`, so they don't have `expectException`, `getMock`, etc. * Reduced stack trace for scenario-driven test formats. Codeception tests implement `PHPUnit_Framework_Test` instead of extending heavy `PHPUnit_Framework_TestCase` class. -* *Breaking* **Conflicts API implemented** Frameworks + PhpBrowser + WebDriver can't be used together unless only non-conflicting part is used. [Announcement](http://codeception.com/03-05-2016/codeception-2.2.-upcoming-features.html#conflicts) -* **Examples** as an alternative to Data Providers. [Announcement](http://codeception.com/03-10-2016/even-more-features-of-codeception.html#examples) -* **Params** loading from yml, env files or environment. [Announcement](http://codeception.com/03-05-2016/codeception-2.2.-upcoming-features.html#params) -* **Test dependencies** with `@depends` annotation. [Announcement](http://codeception.com/03-05-2016/codeception-2.2.-upcoming-features.html#test-dependencies) -* **Custom Commands** inject your own commands as as simple as extension. [Announcement](http://codeception.com/03-10-2016/even-more-features-of-codeception.html#custom-commands) +* *Breaking* **Conflicts API implemented** Frameworks + PhpBrowser + WebDriver can't be used together unless only non-conflicting part is used. [Announcement](https://codeception.com/03-05-2016/codeception-2.2.-upcoming-features.html#conflicts) +* **Examples** as an alternative to Data Providers. [Announcement](https://codeception.com/03-10-2016/even-more-features-of-codeception.html#examples) +* **Params** loading from yml, env files or environment. [Announcement](https://codeception.com/03-05-2016/codeception-2.2.-upcoming-features.html#params) +* **Test dependencies** with `@depends` annotation. [Announcement](https://codeception.com/03-05-2016/codeception-2.2.-upcoming-features.html#test-dependencies) +* **Custom Commands** inject your own commands as as simple as extension. [Announcement](https://codeception.com/03-10-2016/even-more-features-of-codeception.html#custom-commands) * `codecept dry-run` command added to show scenario steps without executing them. * *Breaking* [Dbh] module removed * *Breaking* [Laravel4] module removed. See #2866 @@ -788,9 +788,9 @@ extensions: * *Breaking* [Asserts] removed deprecated `assertLessThen` and `assertGreaterThen` * *Breaking* mocks created with `Codeception\Util\Stub` are not verified in Cests. See #3005 * *Breaking* [REST] `grabAttributeFrom` renamed to `grabAttributeFromXmlElement` to avoid conflicts -* [WebDriver] allows getting current browser and capabilities in test. [Announcement](http://codeception.com/03-10-2016/even-more-features-of-codeception.html#Getting-current-browser-and-capabilities-in-tests) -* [AngularJS] module added. Extends WebDriver module for AngularJS testing. [Announcement](http://codeception.com/03-10-2016/even-more-features-of-codeception.html#angularjs) -* [DataFactory] module added. Performs data generation using FactoryMuffin library [Announcement](http://codeception.com/03-10-2016/even-more-features-of-codeception.html#datafactory) +* [WebDriver] allows getting current browser and capabilities in test. [Announcement](https://codeception.com/03-10-2016/even-more-features-of-codeception.html#Getting-current-browser-and-capabilities-in-tests) +* [AngularJS] module added. Extends WebDriver module for AngularJS testing. [Announcement](https://codeception.com/03-10-2016/even-more-features-of-codeception.html#angularjs) +* [DataFactory] module added. Performs data generation using FactoryMuffin library [Announcement](https://codeception.com/03-10-2016/even-more-features-of-codeception.html#datafactory) * [Redis] Module rewritten using Predis library as driver by @marcverney * [Laravel5] Added a `haveMultiple` method to create more than one model per call. See #2866 * [Laravel5] [Lumen] The `haveRecord`, `seeRecord`, `dontSeeRecord` and `grabRecord` methods now also accept Eloquent model class names instead of only database table names. See #2866 @@ -877,7 +877,7 @@ extensions: #### 2.1.6 -* Starting from 2.1.6 you can **download PHP 5.4 compatible phar build** at http://codeception.com/php54/codecept.phar by @Naktibalda. See [installation guide](http://codeception.com/install). +* Starting from 2.1.6 you can **download PHP 5.4 compatible phar build** at https://codeception.com/php54/codecept.phar by @Naktibalda. See [installation guide](https://codeception.com/install). * [WebDriver] Fixed uploading files with **PhantomJS** #1823 by @DavertMik and @Naktibalda. Please specify your browser name as `phantom` in WebDriver config in order to use PhantomJS-specific hooks. * Fixed parsing PHP files with spaces in name on PHP<7 by @acuthbert. Fixes #2647 * [WebDriver] Fixed proxy error when using with Chrome #2651 by @vaikla @@ -986,7 +986,7 @@ extensions: #### 2.1.2 * **Updated to PHPUnit 4.8** -* Enhancement: **Wildcard includes enabled when testing [multiple applications](http://codeception.com/docs/08-Customization#One-Runner-for-Multiple-Applications)**. See #2016 By @nzod +* Enhancement: **Wildcard includes enabled when testing [multiple applications](https://codeception.com/docs/08-Customization#One-Runner-for-Multiple-Applications)**. See #2016 By @nzod * [Symfony2] fixed Doctrine2 integration: Doctrine transactions will start before each test and rollback afterwards. *2015-08-08* * [Doctrine2] establishing connection and starting transaction is moved to `_before`. *2015-08-08* * [PhpBrowser] Removed disabled and file fields from form values. By @Naktibalda *2015-08-08* @@ -1231,13 +1231,13 @@ codecept run unit tests/unit/Codeception/TestLoaderTest:testAddCept * [REST] sendXXX methods now encode objects implementing JsonSerializable interfaces. *2014-12-19* * [REST] added methods to validate JSON structure *2014-12-19* -[seeResponseJsonMatchesJsonPath](http://codeception.com/docs/modules/REST#seeResponseJsonMatchesJsonPath) validates response JSON against [JsonPath](http://goessner.net/articles/JsonPath/). +[seeResponseJsonMatchesJsonPath](https://codeception.com/docs/modules/REST#seeResponseJsonMatchesJsonPath) validates response JSON against [JsonPath](https://goessner.net/articles/JsonPath/). Usage of JsonPath requires library `flow/jsonpath` to be installed. -[seeResponseJsonMatchesXpath](http://codeception.com/docs/modules/REST#seeResponseJsonMatchesXpath) validates response JSON against XPath. +[seeResponseJsonMatchesXpath](https://codeception.com/docs/modules/REST#seeResponseJsonMatchesXpath) validates response JSON against XPath. It converts JSON structure into valid XML document and executes XPath for it. -[grabDataFromResponseByJsonPath](http://codeception.com/docs/modules/REST#grabDataFromResponseByJsonPath) method was added as well to grab data JSONPath. +[grabDataFromResponseByJsonPath](https://codeception.com/docs/modules/REST#grabDataFromResponseByJsonPath) method was added as well to grab data JSONPath. * [REST] `grabDataFromJsonResponse` deprecated in favor of `grabDataFromResponseByJsonPath` *2014-12-19* * [PhpBrowser][Frameworks] fixed `Unreachable field` error while filling [] fields in input and textarea fields. Issues #1585 #1602 *2014-12-18* @@ -1255,7 +1255,7 @@ It converts JSON structure into valid XML document and executes XPath for it. * Cest tests support multiple `@before` and `@after` annotations. Thanks to @draculus and @zbateson. See #1517 * [FTP] Stops test execution on failed connection by @yegortokmakov * [AMQP] Fix for purging queues on initialization stage. Check for open channel is not needed and it prevents from cleaning queue by @yegortokmakov -* CodeCoverage remote context configuration added by @synchrone. See #1524 [Documentation updated](http://codeception.com/docs/11-Codecoverage#Remote-Context-Options) +* CodeCoverage remote context configuration added by @synchrone. See #1524 [Documentation updated](https://codeception.com/docs/11-Codecoverage#Remote-Context-Options) * Implemented better descriptions for error exception. Fix #1503 * Added `c3_url` option to code coverage settings. `c3_url` allows to explicitly set url for index file with c3 included. See #1024 * [PhpBrowser][Frameworks] Fixed selecting checkbock in a group of checkboxes #1535 diff --git a/CHANGELOG-4.x.md b/CHANGELOG-4.x.md index 60b3fb2482..bb435499e9 100644 --- a/CHANGELOG-4.x.md +++ b/CHANGELOG-4.x.md @@ -1,3 +1,88 @@ +#### 4.2.2 + +* Propagate --ext and --override parameters to included test suites (#6536) +* Fixed false negative message about stecman/symfony-console-completion package (#6541) + +#### 4.2.1 + +* Execute setupBeforeClass/tearDownAfterClass only once (#6481) +* Handle action with intersection return type correctly in dry-run command + +#### 4.2.0 + +* Improved multi-application experience, allow filtering suites by name (#6435) by @calvinalkan +* Configuration override is passed to included suites (#5978) by @calvinalkan +* Made dry-run command work with module methods having return types (#6470) +* Support for expectError/Warning/Notice/Deprecation methods in unit tests (Requires PHPUnit 8.4+) +* Implemented new setting `convert_deprecations_to_exceptions` (#6469) +* Action file generator: Do not return when return type is never (#6462) +* Backported test.useless event from Codeception 5.0 (#6459) + +#### 4.1.31 + +* RunBefore extension prints error output and stops execution if command failed +* Action file generator: Fixed handling of intersection types +* Action file generator: Fixed handling of self and parent types + +#### 4.1.30 + +* Fix handling of previous exception in ExtensionException +* Improved parser fix for PHP keywords as named parameters +* Add link to https://helpukrainewin.org + +#### 4.1.29 + +* Fixed duplicate test runs when codeception.yml and codeception.dist.yml are present in multi-app setup by @calvinalkan +* Action generator handles mixed type correctly +* Parser fix to allow named parameters named class and namespace + +#### 4.1.28 + +* Strictly compare test hashes to avoid skipping tests #6320 by @michel-cetina +* Fixed deprecation message in codecept build #6311 by @barmax + +#### 4.1.27 + +* Renamed editorUrl setting to editor_url for consistency +* Fixed wildcard matching of group files (#6302) by @DavertMik + +#### 4.1.26 + +* Added editorUrl setting to codeception.yml (#6261) by @ThomasLandauer +* Reverted optional value to fail-fast option because it was breaking change (#6290) +* Fixed E_DEPRECATED warnings in Example class on PHP 8.1 (#6298) by @fabacino + +#### 4.1.25 + +* Updated dependencies (#6296) by @TavoNiievez + +#### 4.1.24 + +* Fixed running tests from group files in included configs (#6292) by @DavertMik + +#### 4.1.23 + +* Compatibility with PHP 8.1 (#6252) +* Added optional value to fail-fast option (#6275) by #Verest +* Code coverage covers .php files only (#6265) +* Functions are autoloaded by composer (#6263) by @StuTheWebGuy +* Fixed broken URL in bootstrap deprecation message by @p810 +* `codecept init api` adds AsJson decorators to suite configuration (See https://github.com/Codeception/module-rest/releases/tag/1.4.1) +* Dockerfile upgraded to use xdebug 3.0.4 (#6250) by @PavelBulat + +#### 4.1.22 + +* Security fix: Disable deserialization of RunProcess class (#6241) +* Reduce memory consumption of very large tests (#6230) by @esnelubov +* Support guzzlehttp/psr7 v2 by @W0rma +* Fix W3C warning in reports generated by Recorder extension (#6224) by RickR2H + +#### 4.1.21 + +* Fix `dry-run` compatibility with symfony/console 5.3 +* Coverage: Don't attempt to set cookie domain when it is "localhost" (#6210) by @marcovtwout +* Coverage: Don't attempt to read cookies while an alert is open (#6211) by @marcovtwout + #### 4.1.20 * Fix compatibility with PHP 7.0 (#6154) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ad49504115..991129dd62 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,7 +6,7 @@ Please check the guide for sending your contributions with Github at https://github.com/Codeception/Codeception/wiki/Git-workflow-for-Codeception-contributors ## Coding Standards -All contributions must follow [PSR-2](http://www.php-fig.org/psr/psr-2/) coding standard. +All contributions must follow [PSR-2](https://www.php-fig.org/psr/psr-2/) coding standard. ## Code **Bugfixes should be sent to the current stable branch, which is the same as major version number.** diff --git a/Dockerfile b/Dockerfile index a8ca9a1539..a4b6c764d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,7 @@ RUN pecl install \ memcached \ mongodb \ soap \ - xdebug-2.9.5 && \ + xdebug-3.0.4 && \ docker-php-ext-enable \ apcu.so \ memcached.so \ diff --git a/autoload.php b/autoload.php index 750314005a..07154d284d 100644 --- a/autoload.php +++ b/autoload.php @@ -47,79 +47,3 @@ class ParseError extends \Exception {}; } } // @codingStandardsIgnoreEnd - -// function not autoloaded in PHP, thus its a good place for them -if (!function_exists('codecept_debug')) { - function codecept_debug($data) - { - \Codeception\Util\Debug::debug($data); - } -} - -if (!function_exists('codecept_root_dir')) { - function codecept_root_dir($appendPath = '') - { - return \Codeception\Configuration::projectDir() . $appendPath; - } -} - -if (!function_exists('codecept_output_dir')) { - function codecept_output_dir($appendPath = '') - { - return \Codeception\Configuration::outputDir() . $appendPath; - } -} - -if (!function_exists('codecept_log_dir')) { - function codecept_log_dir($appendPath = '') - { - return \Codeception\Configuration::outputDir() . $appendPath; - } -} - -if (!function_exists('codecept_data_dir')) { - function codecept_data_dir($appendPath = '') - { - return \Codeception\Configuration::dataDir() . $appendPath; - } -} - -if (!function_exists('codecept_relative_path')) { - function codecept_relative_path($path) - { - return \Codeception\Util\PathResolver::getRelativeDir( - $path, - \Codeception\Configuration::projectDir(), - DIRECTORY_SEPARATOR - ); - } -} - -if (!function_exists('codecept_absolute_path')) { - /** - * If $path is absolute, it will be returned without changes. - * If $path is relative, it will be passed to `codecept_root_dir()` function - * to make it absolute. - * - * @param string $path - * @return string the absolute path - */ - function codecept_absolute_path($path) - { - return codecept_is_path_absolute($path) ? $path : codecept_root_dir($path); - } -} - -if (!function_exists('codecept_is_path_absolute')) { - /** - * Check whether the given $path is absolute. - * - * @param string $path - * @return bool - * @since 2.4.4 - */ - function codecept_is_path_absolute($path) - { - return \Codeception\Util\PathResolver::isPathAbsolute($path); - } -} diff --git a/composer.json b/composer.json index d07badbaca..9debeb822c 100644 --- a/composer.json +++ b/composer.json @@ -2,14 +2,14 @@ "name":"codeception/codeception", "description":"BDD-style testing framework", "keywords":["BDD", "acceptance testing", "functional testing", "unit testing", "tdd"], - "homepage":"http://codeception.com/", + "homepage":"https://codeception.com/", "type":"library", "license":"MIT", "authors":[ { "name":"Michael Bodnarchuk", "email":"davert@mail.ua", - "homepage":"http://codegyre.com" + "homepage":"https://codegyre.com" } ], "minimum-stability": "RC", @@ -19,8 +19,8 @@ "ext-curl": "*", "ext-json": "*", "ext-mbstring": "*", - "codeception/lib-asserts": "^1.0", - "guzzlehttp/psr7": "~1.4", + "codeception/lib-asserts": "^1.0 | 2.0.*@dev", + "guzzlehttp/psr7": "^1.4 | ^2.0", "symfony/finder": ">=2.7 <6.0", "symfony/console": ">=2.7 <6.0", "symfony/event-dispatcher": ">=2.7 <6.0", @@ -28,7 +28,7 @@ "symfony/css-selector": ">=2.7 <6.0", "behat/gherkin": "^4.4.0", "codeception/phpunit-wrapper": ">6.0.15 <6.1.0 | ^6.6.1 | ^7.7.1 | ^8.1.1 | ^9.0", - "codeception/stub": "^2.0 | ^3.0" + "codeception/stub": "^2.0 | ^3.0 | ^4.0" }, "require-dev": { "monolog/monolog": "~1.8", @@ -36,11 +36,11 @@ "squizlabs/php_codesniffer": "~2.0", "vlucas/phpdotenv": "^2.0 | ^3.0 | ^4.0 | ^5.0", "symfony/process": ">=2.7 <6.0", - "codeception/module-asserts": "*@dev", - "codeception/module-cli": "*@dev", - "codeception/module-db": "*@dev", - "codeception/module-filesystem": "*@dev", - "codeception/module-phpbrowser": "*@dev", + "codeception/module-asserts": "^1.0 | 2.0.*@dev", + "codeception/module-cli": "^1.0 | 2.0.*@dev", + "codeception/module-db": "^1.0 | 2.0.*@dev", + "codeception/module-filesystem": "^1.0 | 2.0.*@dev", + "codeception/module-phpbrowser": "^1.0 | 2.0.*@dev", "codeception/util-universalframework": "*@dev" }, "suggest": { @@ -55,7 +55,8 @@ "psr-4":{ "Codeception\\": "src/Codeception", "Codeception\\Extension\\": "ext" - } + }, + "files": ["functions.php"] }, "autoload-dev": { "classmap": [ diff --git a/ext/README.md b/ext/README.md index b85a0ecbcd..242aed48e9 100644 --- a/ext/README.md +++ b/ext/README.md @@ -67,7 +67,7 @@ extensions: [See Source](https://github.com/Codeception/Codeception/blob/4.0/ext/Recorder.php) -Saves a screenshot of each step in acceptance tests and shows them as a slideshow on one HTML page (here's an [example](http://codeception.com/images/recorder.gif)) +Saves a screenshot of each step in acceptance tests and shows them as a slideshow on one HTML page (here's an [example](https://codeception.com/images/recorder.gif)) Activated only for suites with WebDriver module enabled. The screenshots are saved to `tests/_output/record_*` directories, open `index.html` to see them as a slideshow. @@ -115,7 +115,7 @@ It is also possible to skip recording of steps for specified tests by using the public function testLogin(AcceptanceTester $I) { $I->login(); - $I->amOnUrl('http://codeception.com'); + $I->amOnUrl('https://codeception.com'); } ``` diff --git a/ext/Recorder.php b/ext/Recorder.php index b00cb69aa0..54eda50af0 100644 --- a/ext/Recorder.php +++ b/ext/Recorder.php @@ -15,7 +15,7 @@ use Codeception\Util\Template; /** - * Saves a screenshot of each step in acceptance tests and shows them as a slideshow on one HTML page (here's an [example](http://codeception.com/images/recorder.gif)) + * Saves a screenshot of each step in acceptance tests and shows them as a slideshow on one HTML page (here's an [example](https://codeception.com/images/recorder.gif)) * Activated only for suites with WebDriver module enabled. * * The screenshots are saved to `tests/_output/record_*` directories, open `index.html` to see them as a slideshow. @@ -63,7 +63,7 @@ * public function testLogin(AcceptanceTester $I) * { * $I->login(); - * $I->amOnUrl('http://codeception.com'); + * $I->amOnUrl('https://codeception.com'); * } * ``` * @@ -136,7 +136,7 @@ class Recorder extends \Codeception\Extension
-