public function __invoke($formatterName) { $this->plugin = $this->formatterManager->get($formatterName); $this->plugin->setView($this->getView()); return $this; }
public function testValidPlugin() { $plugin = $this->getMock('Formatter\\Plugin\\JsonFromArray'); $fm = new FormatterManager(); $fm->validatePlugin($plugin); }