/**
  * @covers Kunstmaan\UtilitiesBundle\Helper\ClassLookup::getClassName
  */
 public function testGetClassName()
 {
     $class = ClassLookup::getClassName(new DummyClass());
     $this->assertEquals('DummyClass', $class);
 }
 /**
  * Add type to the index document
  *
  * @param object $page
  * @param array  $doc
  *
  * @return array
  */
 protected function addSearchType($page, &$doc)
 {
     // Type
     $type = ClassLookup::getClassName($page);
     if ($page instanceof SearchTypeInterface) {
         $type = $page->getSearchType();
     }
     $doc['type'] = $type;
 }