Skip to content

Commit

Permalink
Merge pull request #131 from aik099/remove-session-proxy
Browse files Browse the repository at this point in the history
Removed the "SessionProxy" class
  • Loading branch information
aik099 committed Mar 16, 2024
2 parents 1054f33 + b641d94 commit 0be0ba6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 50 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -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"
Expand Down
26 changes: 13 additions & 13 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion library/aik099/PHPUnit/Session/SessionFactory.php
Expand Up @@ -31,7 +31,7 @@ class SessionFactory implements ISessionFactory
*/
public function createSession(BrowserConfiguration $browser)
{
return new SessionProxy($browser->createDriver());
return new Session($browser->createDriver());
}

}
35 changes: 0 additions & 35 deletions library/aik099/PHPUnit/Session/SessionProxy.php

This file was deleted.

0 comments on commit 0be0ba6

Please sign in to comment.