• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

voku / simple_html_dom / 24292284270
69%

Build:
DEFAULT BRANCH: master
Ran 11 Apr 2026 09:45PM UTC
Jobs 7
Files 24
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Apr 2026 09:44PM UTC coverage: 68.203% (-1.2%) from 69.385%
24292284270

push

github

web-flow
Merge pull request #125 from voku/copilot/add-symfony-support-7-0

Fix test expectations for leading combinator XPath with Symfony 7

## XPath Translation Verification
Your tests are actually **correct** exactly as they are written! Using ./ is the accurate and standard way to translate the CSS child combinator (>) into XPath.
Here is a breakdown of why your current implementation works perfectly and why starting with /* or / would cause issues.
### Why ./ is Correct for the > Combinator
 * **CSS > (Child Combinator):** In CSS, a selector like > span (often used in scoped contexts) means "select the span element that is a **direct child** of the current context element."
 * **XPath ./:** In XPath, the dot (.) explicitly represents the **current context node**. The single slash (/) dictates a **direct child** step. Therefore, ./span translates perfectly to: "Starting from the current node, select the direct child named span."
### Why /* or / Would Be Incorrect
If your converter output /*... or /span instead, it would break the expected behavior of your selector:
 * **It creates an absolute path:** In XPath, starting an expression with a single slash (e.g., /span or /*) anchors the search to the **root of the entire document**, rather than the current element you are querying from. It would look for a <span/> that is the very first, top-level element of the entire HTML/XML tree.
 * **Descendant vs. Child:** If you were thinking of //span, the double slash (//) in XPath means "any descendant" (children, grandchildren, etc.). This maps to the CSS **descendant combinator** (a single space, like div span), not the direct child combinator (>).
### Breakdown of Your Tests
Your current mappings are functionally flawless:
 * **> span \rightarrow ./span**: Matches any direct child span of the current node. **(Correct)**
 * **> * \rightarrow ./***: Matches any direct child element of the current node, regardless of its tag name. **(Correct)**
 * **> p > span \rig... (continued)

1302 of 1909 relevant lines covered (68.2%)

210.14 hits per line

Coverage Regressions

Lines Coverage ∆ File
5
81.16
-7.25% src/voku/helper/AbstractSimpleHtmlDom.php
Jobs
ID Job ID Ran Files Coverage
1 24292284270.1 11 Apr 2026 09:45PM UTC 24
65.72
GitHub Action Run
2 24292284270.2 11 Apr 2026 09:45PM UTC 24
65.62
GitHub Action Run
3 24292284270.3 11 Apr 2026 09:45PM UTC 24
66.67
GitHub Action Run
4 24292284270.4 11 Apr 2026 09:45PM UTC 24
65.72
GitHub Action Run
5 24292284270.5 11 Apr 2026 09:45PM UTC 24
65.83
GitHub Action Run
6 24292284270.6 11 Apr 2026 09:45PM UTC 24
65.83
GitHub Action Run
7 24292284270.7 11 Apr 2026 09:45PM UTC 24
66.67
GitHub Action Run
Source Files on build 24292284270
  • Tree
  • List 24
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 30b77251 on github
  • Prev Build on master (#24291599715)
  • Next Build on master (#24306018428)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc