Skip to content

SapiTest fails on Windows #9595

Description

@live627

got this while testing #9586

PHPUnit 13.3.2 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.5.0
Configuration: C:\Users\John\repos\SMF2.1\phpunit.xml.dist

...............................................................  63 / 202 ( 31%)
...........................F................................... 126 / 202 ( 62%)
............................................................... 189 / 202 ( 93%)
.............                                                   202 / 202 (100%)

Time: 00:00.136, Memory: 30.00 MB

There was 1 failure:

1) SMF\Tests\Unit\SapiTest::testCanonicalPathResolvesDotSegments
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'/a/c'
+'C:\a\c'

C:\Users\John\repos\SMF2.1\tests\Unit\SapiTest.php:21

FAILURES!
Tests: 202, Assertions: 294, Failures: 1.
Script phpunit --no-coverage handling the test event returned with error code 1

This raises a new question: Shall we test on Windows in CI? Adding it to the build matrix in the gh-action is trivial. I have absolutely no clue on a Docker container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions