Adjust ConfigObjectTest as ConfigObjects are not countable anymore

They are of course still indirectly countable, by using Config::count() or
ConfigObject::select()::count().
This commit is contained in:
Johannes Meyer 2015-05-05 15:36:15 +02:00
parent 89029308ef
commit e228404bf4
1 changed files with 1 additions and 12 deletions

View File

@ -60,14 +60,6 @@ class ConfigObjectTest extends BaseTestCase
);
}
public function testWhetherConfigObjectsAreCountable()
{
$config = new ConfigObject(array('a' => 'b', 'c' => array('d' => 'e')));
$this->assertInstanceOf('Countable', $config, 'ConfigObject objects do not implement interface `Countable\'');
$this->assertEquals(2, count($config), 'ConfigObject objects do not count properties and sections correctly');
}
public function testWhetherConfigObjectsAreTraversable()
{
$config = new ConfigObject(array('a' => 'b', 'c' => 'd'));
@ -124,7 +116,7 @@ class ConfigObjectTest extends BaseTestCase
}
/**
* @expectedException LogicException
* @expectedException \Icinga\Exception\ProgrammingError
*/
public function testWhetherItIsNotPossibleToAppendProperties()
{
@ -142,9 +134,6 @@ class ConfigObjectTest extends BaseTestCase
$this->assertFalse(isset($config->c), 'ConfigObjects do not allow to unset sections');
}
/**
* @depends testWhetherConfigObjectsAreCountable
*/
public function testWhetherOneCanCheckIfAConfigObjectHasAnyPropertiesOrSections()
{
$config = new ConfigObject();