function it_write_bundles_names($event, Event $event2, Bundle $bundle2, $output) { $event2->getBundle()->willReturn($bundle2); $output->writeln(Argument::type('string'))->shouldBeCalledTimes(2); $this->preLoad($event); $this->preLoad($event2); }
/** * {@inheritdoc} */ public function preLoad(Event $event) { $class = get_class($event->getBundle()); if (in_array($class, $this->cache)) { return; } $this->output->writeln(sprintf('<fg=black;bg=green>#Bundle > %s </fg=black;bg=green>', $class)); $this->cache[] = $class; }