Skip to content

extend compatability - #60

Merged
TomK merged 7 commits into
2.0from
v2-php74
Sep 29, 2026
Merged

TomK merged 7 commits into
2.0from
v2-php74

Conversation

@TomK

@TomK TomK commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

Remove CircleCI configuration, migrate to GitHub Actions, and update code/tests for PHPUnit compatibility.

- packaged/helpers ^1.17.1: Path::system/url/windows/custom first ship
  together in 1.17.1, so earlier 1.x releases would fail at runtime.
- CubexTest\ moves to autoload-dev so consumers don't autoload the
  framework's test namespace.
- actions/checkout moves to its latest major, v7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Critical CI and path-helper dependency compatibility issues remain, along with incomplete PHPUnit exception-message assertions.

Review effort: Lite
Findings: 2 High severity · 1 Medium severity

Open (3)
What changed in this PR

Migrates the project to GitHub Actions and updates PHPUnit, PHP, and path-helper compatibility.

Changes:

  • Updates PHPUnit assertions and configuration.
  • Modernizes path-helper usage and dependency requirements.
  • Replaces CircleCI with GitHub Actions coverage checks.
File Summary
tests/​Cubex/​View/​ViewModelTest.php Updates PHPUnit assertions and path expectations.
tests/​Cubex/​View/​TemplatedViewModelTest.php Updates string assertions.
tests/​Cubex/​View/​MustacheViewTest.php Updates string assertions.
tests/​Cubex/​View/​LayoutTest.php Updates string assertions.
tests/​Cubex/​View/​LayoutControllerTest.php Updates string assertions.
tests/​Cubex/​View/​BrandedTemplateViewTest.php Updates string assertions.
tests/​Cubex/​Kernel/​SubdomainKernelTest.php Updates string assertions.
tests/​Cubex/​Kernel/​ProjectKernelTest.php Updates array assertions.
tests/​Cubex/​Kernel/​EndpointKernelTest.php Updates string assertions.
tests/​Cubex/​Kernel/​CubexKernelTest.php Updates assertions.
tests/​Cubex/​Kernel/​ControllerKernelTest.php Updates array assertions.
tests/​Cubex/​Kernel/​ApplicationKernelTest.php Updates array assertions.
tests/​Cubex/​Http/​ResponseTest.php Updates assertions and exception expectations.
tests/​Cubex/​CubexTest.php Updates string assertions.
tests/​Cubex/​Console/​ConsoleTest.php Updates string assertions.
tests/​Cubex/​Console/​ConsoleCommandTest.php Updates string assertions.
tests/​Cubex/​Console/​Commands/​BuiltInWebServerTest.php Updates string assertions.
src/​View/​ViewModel.php Uses updated path-helper methods.
src/​Testing/​CubexTestCase.php Updates string assertions.
src/​Routing/​Router.php Uses the URL path helper.
src/​Kernel/​CubexKernel.php Uses updated path-helper methods.
src/​Cubex.php Uses the system path helper.
phpunit.xml Updates PHPUnit configuration.
composer.json Updates PHP, PHPUnit, helper, and autoload requirements.
.github/​workflows/​phpunit.yml Adds the GitHub Actions test workflow.
.circleci/​config.yml Removes CircleCI configuration.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread composer.json
Comment thread composer.json Outdated
Comment thread composer.json
PHPUnit 9's expectException() takes only the class, so the 25 calls
passing a message (and two passing a code) had stopped checking either.
They now use expectExceptionMessage() and expectExceptionCode().

.travis.yml still targeted PHP 7.0/7.1, which can't install a ~7.4
package; GitHub Actions replaces it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The critical Composer security override and related documentation updates remain unresolved.

Review effort: Lite
Findings: 1 High severity

Open (1)
Resolved since last review (3)

Comment thread composer.json Outdated
Composer only reads config from the root package, so the override never
reached consumers, but it disabled advisory blocking for every install
of this repo. It is now just the CI install step's --no-blocking.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TomK
TomK merged commit d3c2ed8 into 2.0 Sep 29, 2026
1 check passed
@TomK
TomK deleted the v2-php74 branch September 29, 2026 09:42
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.

2 participants