Skip to content

Commit

Permalink
Merge pull request #37 from open-source-contributions/test_enhancement
Browse files Browse the repository at this point in the history
Improve assertions
  • Loading branch information
simensen committed Dec 22, 2020
2 parents 6b87551 + 58fc733 commit 40e95db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/DataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ public function testGetWhenValueDoesNotExist()

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

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

0 comments on commit 40e95db

Please sign in to comment.