Skip to content

Commit 0e999fc

Browse files
committed
Fix impossible conditional in test
1 parent dfcfb1b commit 0e999fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/system/Cache/CacheFactoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ public function testHandlesBadHandler(): void
9696

9797
$this->config->handler = 'dummy';
9898

99-
if (str_starts_with('win', strtolower(php_uname()))) {
100-
$this->assertTrue(true); // can't test properly if we are on Windows
99+
if (is_windows()) {
100+
$this->markTestSkipped('Cannot test this properly on Windows.');
101101
} else {
102102
$this->assertInstanceOf(DummyHandler::class, $this->cacheFactory->getHandler($this->config, 'wincache', 'wincache'));
103103
}

0 commit comments

Comments
 (0)