/** * 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()); } }
public function testLookupEventProperties() { $collection = $this->getMock('Doctrine\\Common\\Collections\\Collection'); $event = new TagLookupEvent($collection); $this->assertEquals($collection, $event->getResult()); }