Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Move Mink toward 2.0 #542

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

[WIP] Move Mink toward 2.0 #542

wants to merge 5 commits into from

Conversation

stof
Copy link
Member

@stof stof commented May 10, 2014

this is the updated version of #427 targetting the master branch.

See #415 for the goals of the change

@stof stof changed the title Move Mink toward 2.0 [WIP] Move Mink toward 2.0 May 10, 2014
@stof stof added this to the 2.0 milestone May 15, 2014
@stof stof force-pushed the 2-architecture-changes branch 2 times, most recently from 77f4cc5 to 3ba6487 Compare January 8, 2015 11:31
@stof stof force-pushed the 2-architecture-changes branch 2 times, most recently from 2f6d0fc to e42b0c4 Compare August 29, 2015 19:07
@stof stof marked this pull request as draft June 1, 2023 14:23
@codecov
Copy link

codecov bot commented Jun 12, 2023

Codecov Report

Merging #542 (3b01db6) into master (f0ae96a) will increase coverage by 1.14%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master     #542      +/-   ##
============================================
+ Coverage     98.43%   99.58%   +1.14%     
+ Complexity      351      330      -21     
============================================
  Files            24       23       -1     
  Lines          1024      959      -65     
============================================
- Hits           1008      955      -53     
+ Misses           16        4      -12     
Impacted Files Coverage Δ
src/Selector/NamedSelector.php 100.00% <ø> (ø)
src/Selector/SelectorsHandler.php 100.00% <ø> (ø)
src/Driver/CoreDriver.php 100.00% <100.00%> (ø)
src/Element/Element.php 100.00% <100.00%> (+14.28%) ⬆️
src/Element/ElementFinder.php 100.00% <100.00%> (ø)
src/Element/NodeElement.php 98.90% <100.00%> (ø)
src/Exception/ElementHtmlException.php 100.00% <100.00%> (ø)
src/Exception/ElementNotFoundException.php 100.00% <100.00%> (ø)
src/Exception/ExpectationException.php 96.96% <100.00%> (+12.87%) ⬆️
src/Session.php 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

stof and others added 5 commits June 13, 2023 23:58
The constructor now receives the driver and the element finder instead
of the session.
This avoids a circular dependency. The driver interface now returns an
array of XPath for found elements, and Element::find() instantiates the
NodeElement for them.
The driver is now the low level API which does not depend on any other
part of Mink (but used by other parts).
The ElementFinder is responsible for instantiating the NodeElement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant