コード例 #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());
     }
 }
コード例 #2
0
 public function testLookupEventProperties()
 {
     $collection = $this->getMock('Doctrine\\Common\\Collections\\Collection');
     $event = new TagLookupEvent($collection);
     $this->assertEquals($collection, $event->getResult());
 }