Skip to content

Commit

Permalink
Fix impossible conditional in test
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan committed Jan 17, 2025
1 parent dfcfb1b commit 0e999fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/system/Cache/CacheFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ public function testHandlesBadHandler(): void

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

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

0 comments on commit 0e999fc

Please sign in to comment.