Skip to content

Commit 40e95db

Browse files
authored
Merge pull request #37 from open-source-contributions/test_enhancement
Improve assertions
2 parents 6b87551 + 58fc733 commit 40e95db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/DataTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ public function testGetWhenValueDoesNotExist()
193193

194194
// With a default parameter given:
195195
$this->assertSame('DEFAULT', $data->get('foo.bar', 'DEFAULT'));
196-
$this->assertSame(false, $data->get('foo.bar', false));
197-
$this->assertSame(null, $data->get('foo/bar', null));
196+
$this->assertFalse($data->get('foo.bar', false));
197+
$this->assertNull($data->get('foo/bar', null));
198198

199199
// Without a default parameter:
200200
$this->expectException(DataException::class);

0 commit comments

Comments
 (0)