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

valkyrjaio / ci-rector-php / 27857717593
100%

Build:
DEFAULT BRANCH: 26.x
Ran 20 Jun 2026 02:40AM UTC
Jobs 1
Files 3
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

20 Jun 2026 02:39AM UTC coverage: 100.0% (+0.7%) from 99.27%
27857717593

push

github

web-flow
[Tests] Adding missing tests (#85)

# Description

Brings the Rector package to 100% test coverage and refactors
`RemoveNonConflictingAliasInUseStatementRector` so every branch is
reachable and covered by its own dedicated test.

The rector's `refactor()` previously combined file-node and namespace
handling and nested its class-like checks inside a multi-line
parenthesized condition. That shape left branches awkward to exercise
and produced a coverage artifact under newer PHPUnit/Xdebug (a bare `(`
on its own line counted as an uncoverable statement). The logic is split
into clearer paths and the parenthesized `instanceof` group is extracted
into a local boolean, so the file reaches 100% line coverage by its own
test alone. No behavior changes.

---

## Types of Changes

- [x] Improvement _(non-breaking change which improves code)_
- [ ] Bug fix _(non-breaking change which fixes an issue)_
- [ ] New feature _(non-breaking change which adds functionality)_
- [ ] Deprecation _(breaking change which removes functionality)_
- [ ] Breaking change _(fix or feature that would cause existing
functionality to change)_
- [ ] Documentation improvement

---

## Changes

-
**`src/Rector/CodingStyle/Rector/Stmt/RemoveNonConflictingAliasInUseStatementRector.php`**
— split `FileNode` and `Namespace_` handling into separate paths;
extracted the `Class_` / `Interface_` / `Trait_` / `Enum_` check into a
`$isClassLike` local, removing the multi-line-condition coverage
artifact
-
**`tests/Tests/Unit/CodingStyle/Rector/Stmt/RemoveNonConflictingAliasInUseStatementRectorTest.php`**
— added a dedicated unit test exercising the rector's node logic
directly
-
**`tests/Tests/CodingStyle/Rector/Stmt/RemoveNonConflictingAliasInUseStatementRectorTest.php`**
/
**`tests/Fixture/RemoveNonConflictingAliasInUseStatementRector/*.php.inc`**
/ **`tests/config/`** — added Rector integration fixtures (trait use,
enum/import conflicts, type declarations, two-removable-aliases, skip
cases)
- *... (continued)

5 of 5 new or added lines in 1 file covered. (100.0%)

137 of 137 relevant lines covered (100.0%)

7.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27857717593.1 20 Jun 2026 02:40AM UTC 3
100.0
GitHub Action Run
Source Files on build 27857717593
  • Tree
  • List 3
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27857717593
  • 0d622b44 on github
  • Prev Build on 26.x (#27853549014)
  • Next Build on 26.x (#27863174895)
  • Delete
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