@@ -142,10 +142,12 @@ public function testWithPluginToolsDoesNotDuplicate(): void
142142 $ scanDirs = $ builder ->getScanDirs ();
143143 $ pluginSrcPath = dirname (dirname (dirname (__DIR__ ))) . '/src ' ;
144144 $ pluginSrcPath = ltrim ($ pluginSrcPath , DIRECTORY_SEPARATOR );
145+ // Normalize to forward slashes for cross-platform consistency
146+ $ pluginSrcPath = str_replace (DIRECTORY_SEPARATOR , '/ ' , $ pluginSrcPath );
145147
146- $ toolsPath = $ pluginSrcPath . DIRECTORY_SEPARATOR . ' Tools ' ;
147- $ promptsPath = $ pluginSrcPath . DIRECTORY_SEPARATOR . ' Prompts ' ;
148- $ resourcesPath = $ pluginSrcPath . DIRECTORY_SEPARATOR . ' Resources ' ;
148+ $ toolsPath = $ pluginSrcPath . ' / Tools ' ;
149+ $ promptsPath = $ pluginSrcPath . ' / Prompts ' ;
150+ $ resourcesPath = $ pluginSrcPath . ' / Resources ' ;
149151
150152 // Count occurrences of each path - should be 1 each
151153 $ toolsCount = count (array_filter ($ scanDirs , fn (string $ dir ): bool => $ dir === $ toolsPath ));
@@ -278,10 +280,12 @@ public function testBuildWithPluginTools(): void
278280 // Verify Tools, Prompts, and Resources directories are in scan dirs
279281 $ pluginSrcPath = dirname (dirname (dirname (__DIR__ ))) . '/src ' ;
280282 $ pluginSrcPath = ltrim ($ pluginSrcPath , DIRECTORY_SEPARATOR );
283+ // Normalize to forward slashes for cross-platform consistency
284+ $ pluginSrcPath = str_replace (DIRECTORY_SEPARATOR , '/ ' , $ pluginSrcPath );
281285
282- $ toolsPath = $ pluginSrcPath . DIRECTORY_SEPARATOR . ' Tools ' ;
283- $ promptsPath = $ pluginSrcPath . DIRECTORY_SEPARATOR . ' Prompts ' ;
284- $ resourcesPath = $ pluginSrcPath . DIRECTORY_SEPARATOR . ' Resources ' ;
286+ $ toolsPath = $ pluginSrcPath . ' / Tools ' ;
287+ $ promptsPath = $ pluginSrcPath . ' / Prompts ' ;
288+ $ resourcesPath = $ pluginSrcPath . ' / Resources ' ;
285289 $ this ->assertContains ($ toolsPath , $ builder ->getScanDirs ());
286290 $ this ->assertContains ($ promptsPath , $ builder ->getScanDirs ());
287291 $ this ->assertContains ($ resourcesPath , $ builder ->getScanDirs ());
0 commit comments