From 2c231316eb7a76eb1e85b66b563c02b3b9a57f5a Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Fri, 9 Oct 2026 21:05:47 -0500 Subject: [PATCH] test: build the expected message template path with the platform separator The expectation was hand-built with a hard-coded "/", while the source emits `__DIR__` (native separator) followed by the literal. The two only agreed on POSIX, so the test failed on Windows even though the path was correct. Signed-off-by: Joey Smith Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- test/unit/ConfigProviderTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/ConfigProviderTest.php b/test/unit/ConfigProviderTest.php index 00d0a77..4f49233 100644 --- a/test/unit/ConfigProviderTest.php +++ b/test/unit/ConfigProviderTest.php @@ -29,6 +29,8 @@ use function dirname; +use const DIRECTORY_SEPARATOR; + #[CoversClass(ConfigProvider::class)] #[CoversMethod(ConfigProvider::class, 'getDependencies')] #[CoversMethod(ConfigProvider::class, 'getTemplates')] @@ -72,7 +74,7 @@ public function getTemplatesRegistersMessageTemplatePath(): void $templates = $provider->getTemplates(); self::assertSame( - [dirname(__DIR__, levels: 2) . '/src/../templates/'], + [dirname(__DIR__, levels: 2) . DIRECTORY_SEPARATOR . 'src/../templates/'], $templates['paths']['message'], ); self::assertCount(1, $templates['paths']);