From 94666abd11909e3fbb8671d62e50de71dc89fd9b Mon Sep 17 00:00:00 2001 From: peter279k Date: Sat, 17 Nov 2018 20:31:38 +0800 Subject: [PATCH] Tests and assertions enhancement --- composer.json | 1 - tests/AbstractConfigTest.php | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index f25d8b7..fc6f68b 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,6 @@ "issues": "https://github.com/filips123/ConfigWriter/issues/", "source": "https://github.com/filips123/ConfigWriter/", "docs": "https://github.com/filips123/ConfigWriter/wiki/" - }, "minimum-stability": "RC", "prefer-stable": true, diff --git a/tests/AbstractConfigTest.php b/tests/AbstractConfigTest.php index 36cdf77..8590595 100644 --- a/tests/AbstractConfigTest.php +++ b/tests/AbstractConfigTest.php @@ -242,8 +242,8 @@ public function testOffsetGet() */ public function testOffsetExists() { - $this->assertTrue(isset($this->config['database']['host'])); - $this->assertFalse(isset($this->config['user']['password'])); + $this->assertNotEmpty($this->config['database']['host']); + $this->assertEmpty($this->config['user']['password']); } /**