Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fdd1002

Browse files
committed
Skip breaking test on windows
1 parent 329b181 commit fdd1002

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,11 @@ public function testHitsCachedResponseWithMaxAgeDirective()
564564

565565
public function testDegradationWhenCacheLocked()
566566
{
567+
// skip test on Windows, it breaks permissions
568+
if ('\\' === DIRECTORY_SEPARATOR) {
569+
$this->markTestSkipped('This test cannot run on Windows.');
570+
}
571+
567572
$this->cacheConfig['stale_while_revalidate'] = 10;
568573

569574
// The prescence of Last-Modified makes this cacheable (because Response::isValidateable() then).

0 commit comments

Comments
 (0)