Change has to isSet

This commit is contained in:
brabli committed 2025-11-27 15:17:14 +00:00
1 parent 376aede1ba
commit 3ad1d91c68
3 files changed
+7 -7

No files matched your search

+4 -4
View File
@@ -47,17 +47,17 @@ final class MetadataTest extends TestCase
$this->assertSame($valueB, $result);
}
public function testHasReturnsTrueWhenKeyIsSet(): void
public function testIsSetReturnsTrueWhenKeyIsSet(): void
{
$key = 'null';
$this->metadata->set($key, null);
$result = $this->metadata->has($key);
$result = $this->metadata->isSet($key);
$this->assertTrue($result);
}
public function testHasReturnsFalseWhenKeyIsNotSet(): void
public function testIsSetReturnsFalseWhenKeyIsNotSet(): void
{
$result = $this->metadata->has('missing');
$result = $this->metadata->isSet('missing');
$this->assertFalse($result);
}
}