diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a6b5d7..1a62e1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Reduce memory consumption by rewriting `SessionStrategyFactory` and `SessionStrategyManager` classes. - (Not a BC break) Some public methods of the `BrowserTestCase` class are protected now. Affected methods: `setRemoteCoverageScriptUrl`, `setBrowser`, `getBrowser`, `setSessionStrategy`, `getSessionStrategy`, `getCollectCodeCoverageInformation`, `getRemoteCodeCoverageInformation`. - (Not a BC break) Some protected properties of the `BrowserTestCase` class are private now. Affected properties: `sessionStrategyManager`, `remoteCoverageHelper`, `sessionStrategy`. +- Bumped minimal required `Behat/Mink` version to 1.8 (needed after `SessionProxy` class removal). ### Fixed - Don't set remote code coverage collection cookies, when the remote code coverage script URL isn't specified. diff --git a/composer.json b/composer.json index 4f16ef4..5d220f6 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "require": { "php": ">=5.6", - "behat/mink": "~1.6@dev", + "behat/mink": "^1.8@dev", "behat/mink-selenium2-driver": "~1.2", "phpunit/phpunit": ">=4.8.35 <5|>=5.4.3", "console-helpers/phpunit-compat": "^1.0.2" diff --git a/composer.lock b/composer.lock index 6be74ea..5bdb766 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "494c2858cc1bd23a8dc3131ef787d0c6", + "content-hash": "308a4f814b44da8fd1eea8bd79b02b69", "packages": [ { "name": "behat/mink", @@ -139,16 +139,16 @@ }, { "name": "console-helpers/phpunit-compat", - "version": "v1.0.1", + "version": "v1.0.2", "source": { "type": "git", "url": "https://github.com/console-helpers/phpunit-compat.git", - "reference": "ec8608c3863d75b0389ebb5c0a1f5703b638c451" + "reference": "6b7dcb5a4f5c334b9eb7f41acba5554382d2d5c1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/console-helpers/phpunit-compat/zipball/ec8608c3863d75b0389ebb5c0a1f5703b638c451", - "reference": "ec8608c3863d75b0389ebb5c0a1f5703b638c451", + "url": "https://api.github.com/repos/console-helpers/phpunit-compat/zipball/6b7dcb5a4f5c334b9eb7f41acba5554382d2d5c1", + "reference": "6b7dcb5a4f5c334b9eb7f41acba5554382d2d5c1", "shasum": "" }, "require": { @@ -182,9 +182,9 @@ "description": "Compatibility layer for PHPUnit test cases/test suite to work on different major PHPUnit versions", "support": { "issues": "https://github.com/console-helpers/phpunit-compat/issues", - "source": "https://github.com/console-helpers/phpunit-compat/tree/v1.0.1" + "source": "https://github.com/console-helpers/phpunit-compat/tree/v1.0.2" }, - "time": "2024-03-03T21:01:14+00:00" + "time": "2024-03-12T11:33:58+00:00" }, { "name": "doctrine/instantiator", @@ -1020,16 +1020,16 @@ }, { "name": "sebastian/code-unit-reverse-lookup", - "version": "1.0.2", + "version": "1.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619" + "reference": "92a1a52e86d34cde6caa54f1b5ffa9fda18e5d54" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/1de8cd5c010cb153fcd68b8d0f64606f523f7619", - "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/92a1a52e86d34cde6caa54f1b5ffa9fda18e5d54", + "reference": "92a1a52e86d34cde6caa54f1b5ffa9fda18e5d54", "shasum": "" }, "require": { @@ -1063,7 +1063,7 @@ "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", "support": { "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", - "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/1.0.2" + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/1.0.3" }, "funding": [ { @@ -1071,7 +1071,7 @@ "type": "github" } ], - "time": "2020-11-30T08:15:22+00:00" + "time": "2024-03-01T13:45:45+00:00" }, { "name": "sebastian/comparator", diff --git a/library/aik099/PHPUnit/Session/SessionFactory.php b/library/aik099/PHPUnit/Session/SessionFactory.php index 5a6c064..80a6e1e 100644 --- a/library/aik099/PHPUnit/Session/SessionFactory.php +++ b/library/aik099/PHPUnit/Session/SessionFactory.php @@ -31,7 +31,7 @@ class SessionFactory implements ISessionFactory */ public function createSession(BrowserConfiguration $browser) { - return new SessionProxy($browser->createDriver()); + return new Session($browser->createDriver()); } } diff --git a/library/aik099/PHPUnit/Session/SessionProxy.php b/library/aik099/PHPUnit/Session/SessionProxy.php deleted file mode 100644 index e6c0e57..0000000 --- a/library/aik099/PHPUnit/Session/SessionProxy.php +++ /dev/null @@ -1,35 +0,0 @@ - - * @link https://github.com/aik099/phpunit-mink - */ - -namespace aik099\PHPUnit\Session; - - -use Behat\Mink\Session; - -class SessionProxy extends Session -{ - - /** - * Visit specified URL. - * - * @param string $url Url of the page. - * - * @return void - */ - public function visit($url) - { - if ( !$this->isStarted() ) { - $this->start(); - } - - parent::visit($url); - } - -}