From f2d2b66105efb688fb15bbd23e2b96dc1b4bc183 Mon Sep 17 00:00:00 2001 From: inhere Date: Sat, 1 May 2021 21:31:35 +0800 Subject: [PATCH] fix unit test error for config --- test/unit/PhpConfigTest.php | 6 +++--- test/unit/YamlConfigTest.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/unit/PhpConfigTest.php b/test/unit/PhpConfigTest.php index 487da22..9fabaed 100644 --- a/test/unit/PhpConfigTest.php +++ b/test/unit/PhpConfigTest.php @@ -79,19 +79,19 @@ public function testOffsetExists() public function testForget() { - $this->config->forget(''); $this->expectException(\Swoft\Config\Exception\ConfigException::class); + $this->config->forget(''); } public function testOffsetUnset() { - $this->config->offsetUnset(''); $this->expectException(\Swoft\Config\Exception\ConfigException::class); + $this->config->offsetUnset(''); } public function testOffsetSett() { - $this->config->offsetSet('key', 'value'); $this->expectException(\Swoft\Config\Exception\ConfigException::class); + $this->config->offsetSet('key', 'value'); } } diff --git a/test/unit/YamlConfigTest.php b/test/unit/YamlConfigTest.php index 727a3bb..9051035 100644 --- a/test/unit/YamlConfigTest.php +++ b/test/unit/YamlConfigTest.php @@ -81,19 +81,19 @@ public function testOffsetExists() public function testForget() { - $this->config->forget(''); $this->expectException(\Swoft\Config\Exception\ConfigException::class); + $this->config->forget(''); } public function testOffsetUnset() { - $this->config->offsetUnset(''); $this->expectException(\Swoft\Config\Exception\ConfigException::class); + $this->config->offsetUnset(''); } public function testOffsetSett() { - $this->config->offsetSet('key', 'value'); $this->expectException(\Swoft\Config\Exception\ConfigException::class); + $this->config->offsetSet('key', 'value'); } }