/**
  * Delete all cached information.
  *
  * @since 1.8
  */
 public function clearCaches()
 {
     $this->prop_ids = array();
     $this->prop_sortkeys = array();
     $this->regular_ids = array();
     $this->regular_sortkeys = array();
     $this->idToDataItemMatchFinder->clear();
 }
 public function testGetDataItemPoolHashListFor()
 {
     $row = new \stdClass();
     $row->smw_title = 'Foo';
     $row->smw_namespace = 0;
     $row->smw_iw = '';
     $row->smw_subobject = '';
     $connection = $this->getMockBuilder('\\SMW\\MediaWiki\\Database')->disableOriginalConstructor()->getMock();
     $connection->expects($this->once())->method('select')->with($this->anything(), $this->anything(), $this->equalTo(array('smw_id' => array(42))))->will($this->returnValue(array($row)));
     $instance = new IdToDataItemMatchFinder($connection, new IteratorFactory());
     foreach ($instance->getDataItemPoolHashListFor(array(42)) as $value) {
         $this->assertEquals('Foo#0##', $value);
     }
 }