Exemplo n.º 1
0
 /**
  *  Log lookup event
  *
  *  @access public
  *  @param TagLookupEvent $event 
  */
 public function logLookupEvent(TagLookupEvent $event)
 {
     $lookupCount = count($event->getResult());
     if ($lookupCount > 0) {
         $this->log->info(sprintf('QuickTag:: Looking up %s tags', $lookupCount), array());
     }
 }
Exemplo n.º 2
0
 public function testLookupEventProperties()
 {
     $collection = $this->getMock('Doctrine\\Common\\Collections\\Collection');
     $event = new TagLookupEvent($collection);
     $this->assertEquals($collection, $event->getResult());
 }