Browse Source

additional tests of Config class

tags/0.7
Paul Rock 7 years ago
parent
commit
c6351f7d96
  1. 10
      tests/ConfigTest.php

10
tests/ConfigTest.php

@ -40,6 +40,16 @@ class ConfigTest extends TestCase
$this->assertEquals($params['timeout'], 111); $this->assertEquals($params['timeout'], 111);
} }
public function testSetArr()
{
$obj = new Config([
'timeout' => 111
]);
$params = $obj->getParameters();
$this->assertEquals($params['timeout'], 111);
}
public function testDelete() public function testDelete()
{ {
$obj = new Config(); $obj = new Config();

Loading…
Cancel
Save