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'); } }