/**
  * Test common_Collection->intersect
  */
 public function testIntersect()
 {
     $collection = new common_Collection(new common_Object('__METHOD__'));
     $collection->add(new core_kernel_classes_Literal('plop'));
     $collection->add(new core_kernel_classes_Literal('plop2'));
     $collection->add($this->toto);
     $collection->add($this->tata);
     $results = $collection->intersect($this->object);
     $this->assertIsA($results, 'common_Collection');
     $this->assertTrue($results->count() == 2);
     $this->assertTrue($results->get($results->indexOf($this->toto))->literal == 'toto');
     $this->assertTrue($results->get($results->indexOf($this->tata))->literal == 'tata');
 }
 /**
  * Short description of method add
  *
  * @access public
  * @author Jerome Bogaerts, <*****@*****.**>
  * @param  Object element
  * @return void
  */
 public function add(common_Object $element)
 {
     parent::add($element);
 }