Skip to content

Commit

Permalink
fix unit test error for config
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed May 1, 2021
1 parent 0cfded7 commit f2d2b66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/unit/PhpConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
6 changes: 3 additions & 3 deletions test/unit/YamlConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

0 comments on commit f2d2b66

Please sign in to comment.