/** * @param string $templatePath * * @api * @return $this */ public function addTemplatePath($templatePath) { $this->templateEngine->addPath($templatePath); return $this; }
function it_allows_template_over_loading(TemplateEngine $templateEngine) { $templateEngine->addPath(self::TEMPLATE_PATH)->shouldBeCalled(); $this->addTemplatePath(self::TEMPLATE_PATH); }