/** * test getCacheTags * * @param array $strategyTags * @param array $expectedTags * * @dataProvider provideTags */ public function testGetCacheTags($strategyTags, $expectedTags) { Phake::when($this->strategy)->getCacheTags($this->block)->thenReturn($strategyTags); $tags = $this->manager->getCacheTags($this->block); $this->assertSame($tags, $expectedTags); }
/** * Returns a rendered view. * * @param string $view The view name * @param array $parameters An array of parameters to pass to the view * * @return string The rendered view */ public function renderView($view, array $parameters = array()) { return $this->manager->getTemplating()->render($view, $parameters); }