public function testGetView()
 {
     $phpRenderer = new PhpRenderer();
     $this->plugin->setView($phpRenderer);
     $this->assertInstanceOf('Zend\\View\\Renderer\\PhpRenderer', $this->plugin->getView());
 }
Exemple #2
0
 public function __invoke($formatterName)
 {
     $this->plugin = $this->formatterManager->get($formatterName);
     $this->plugin->setView($this->getView());
     return $this;
 }