Change has to isSet
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user