Example #1
0
 public function testClear()
 {
     $list = array('key1' => $this->getMockConnector(), 'key2' => $this->getMockConnector(), 'key3' => $this->getMockConnector());
     DbRegistry::setConnectors($list);
     $list2 = array('param1' => $this->getMockDictionary(), 'param2' => $this->getMockDictionary(), 'param3' => $this->getMockDictionary());
     DbRegistry::setConnectionParams($list2);
     $this->assertNull(DbRegistry::clear());
     $this->assertEquals(array(), DbRegistry::getAllConnectors());
     $this->assertEquals(array(), DbRegistry::getAllConnectionParams());
 }