public function testGetObjectList_StringClass()
{
$structure = new Structure();
$structure->set('param1', array(array('a' => 'a0'), array('a' => 'a1')));
// get not exited key
$this->assertEquals(array(), $structure->getObjectList('unexisted-param', '\\Sokil\\Mongo\\StructureWrapper'));
// get existed key
$list = $structure->getObjectList('param1', '\\Sokil\\Mongo\\StructureWrapper');
foreach ($list as $i => $item) {
$this->assertInstanceOf('\\Sokil\\Mongo\\StructureWrapper', $item);
$this->assertEquals('a' . $i, $item->a);
}
}