Change has to isSet

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

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);
}
}