From 58fc733d616822cabc2e95dadb34842be89176d1 Mon Sep 17 00:00:00 2001 From: peter279k Date: Mon, 23 Nov 2020 03:27:48 +0800 Subject: [PATCH] Improve assertions --- tests/DataTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/DataTest.php b/tests/DataTest.php index 06e1fbc..3777a3d 100644 --- a/tests/DataTest.php +++ b/tests/DataTest.php @@ -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);