@@ -359,11 +359,12 @@ public function testCachePathsResolveToBootstrapCacheDirectory()
359
359
{
360
360
$ app = new Application ('/base/path ' );
361
361
362
- $ this ->assertSame ('/base/path/bootstrap/cache/services.php ' , $ app ->getCachedServicesPath ());
363
- $ this ->assertSame ('/base/path/bootstrap/cache/packages.php ' , $ app ->getCachedPackagesPath ());
364
- $ this ->assertSame ('/base/path/bootstrap/cache/config.php ' , $ app ->getCachedConfigPath ());
365
- $ this ->assertSame ('/base/path/bootstrap/cache/routes.php ' , $ app ->getCachedRoutesPath ());
366
- $ this ->assertSame ('/base/path/bootstrap/cache/events.php ' , $ app ->getCachedEventsPath ());
362
+ $ ds = DIRECTORY_SEPARATOR ;
363
+ $ this ->assertSame ('/base/path ' .$ ds .'bootstrap ' .$ ds .'cache/services.php ' , $ app ->getCachedServicesPath ());
364
+ $ this ->assertSame ('/base/path ' .$ ds .'bootstrap ' .$ ds .'cache/packages.php ' , $ app ->getCachedPackagesPath ());
365
+ $ this ->assertSame ('/base/path ' .$ ds .'bootstrap ' .$ ds .'cache/config.php ' , $ app ->getCachedConfigPath ());
366
+ $ this ->assertSame ('/base/path ' .$ ds .'bootstrap ' .$ ds .'cache/routes.php ' , $ app ->getCachedRoutesPath ());
367
+ $ this ->assertSame ('/base/path ' .$ ds .'bootstrap ' .$ ds .'cache/events.php ' , $ app ->getCachedEventsPath ());
367
368
}
368
369
369
370
public function testEnvPathsAreUsedForCachePathsWhenSpecified ()
@@ -375,6 +376,7 @@ public function testEnvPathsAreUsedForCachePathsWhenSpecified()
375
376
$ _SERVER ['APP_ROUTES_CACHE ' ] = '/absolute/path/routes.php ' ;
376
377
$ _SERVER ['APP_EVENTS_CACHE ' ] = '/absolute/path/events.php ' ;
377
378
379
+ $ ds = DIRECTORY_SEPARATOR ;
378
380
$ this ->assertSame ('/absolute/path/services.php ' , $ app ->getCachedServicesPath ());
379
381
$ this ->assertSame ('/absolute/path/packages.php ' , $ app ->getCachedPackagesPath ());
380
382
$ this ->assertSame ('/absolute/path/config.php ' , $ app ->getCachedConfigPath ());
@@ -399,11 +401,12 @@ public function testEnvPathsAreUsedAndMadeAbsoluteForCachePathsWhenSpecifiedAsRe
399
401
$ _SERVER ['APP_ROUTES_CACHE ' ] = 'relative/path/routes.php ' ;
400
402
$ _SERVER ['APP_EVENTS_CACHE ' ] = 'relative/path/events.php ' ;
401
403
402
- $ this ->assertSame ('/base/path/relative/path/services.php ' , $ app ->getCachedServicesPath ());
403
- $ this ->assertSame ('/base/path/relative/path/packages.php ' , $ app ->getCachedPackagesPath ());
404
- $ this ->assertSame ('/base/path/relative/path/config.php ' , $ app ->getCachedConfigPath ());
405
- $ this ->assertSame ('/base/path/relative/path/routes.php ' , $ app ->getCachedRoutesPath ());
406
- $ this ->assertSame ('/base/path/relative/path/events.php ' , $ app ->getCachedEventsPath ());
404
+ $ ds = DIRECTORY_SEPARATOR ;
405
+ $ this ->assertSame ('/base/path ' .$ ds .'relative/path/services.php ' , $ app ->getCachedServicesPath ());
406
+ $ this ->assertSame ('/base/path ' .$ ds .'relative/path/packages.php ' , $ app ->getCachedPackagesPath ());
407
+ $ this ->assertSame ('/base/path ' .$ ds .'relative/path/config.php ' , $ app ->getCachedConfigPath ());
408
+ $ this ->assertSame ('/base/path ' .$ ds .'relative/path/routes.php ' , $ app ->getCachedRoutesPath ());
409
+ $ this ->assertSame ('/base/path ' .$ ds .'relative/path/events.php ' , $ app ->getCachedEventsPath ());
407
410
408
411
unset(
409
412
$ _SERVER ['APP_SERVICES_CACHE ' ],
@@ -423,11 +426,12 @@ public function testEnvPathsAreUsedAndMadeAbsoluteForCachePathsWhenSpecifiedAsRe
423
426
$ _SERVER ['APP_ROUTES_CACHE ' ] = 'relative/path/routes.php ' ;
424
427
$ _SERVER ['APP_EVENTS_CACHE ' ] = 'relative/path/events.php ' ;
425
428
426
- $ this ->assertSame ('/relative/path/services.php ' , $ app ->getCachedServicesPath ());
427
- $ this ->assertSame ('/relative/path/packages.php ' , $ app ->getCachedPackagesPath ());
428
- $ this ->assertSame ('/relative/path/config.php ' , $ app ->getCachedConfigPath ());
429
- $ this ->assertSame ('/relative/path/routes.php ' , $ app ->getCachedRoutesPath ());
430
- $ this ->assertSame ('/relative/path/events.php ' , $ app ->getCachedEventsPath ());
429
+ $ ds = DIRECTORY_SEPARATOR ;
430
+ $ this ->assertSame ($ ds .'relative/path/services.php ' , $ app ->getCachedServicesPath ());
431
+ $ this ->assertSame ($ ds .'relative/path/packages.php ' , $ app ->getCachedPackagesPath ());
432
+ $ this ->assertSame ($ ds .'relative/path/config.php ' , $ app ->getCachedConfigPath ());
433
+ $ this ->assertSame ($ ds .'relative/path/routes.php ' , $ app ->getCachedRoutesPath ());
434
+ $ this ->assertSame ($ ds .'relative/path/events.php ' , $ app ->getCachedEventsPath ());
431
435
432
436
unset(
433
437
$ _SERVER ['APP_SERVICES_CACHE ' ],
0 commit comments