Skip to content

Commit

Permalink
Fix 'expected object implementing Phalcon\Mvc\View\EngineInterface' b…
Browse files Browse the repository at this point in the history
…ug in the tests
  • Loading branch information
sjinks committed Oct 4, 2013
1 parent ba60297 commit e0a5a8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions unit-tests/ViewEnginesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
/**
* Adapter to use Mustache library as templating engine
*/
class My_Mustache_Engine extends \Phalcon\Mvc\View\Engine
class My_Mustache_Engine extends \Phalcon\Mvc\View\Engine implements \Phalcon\Mvc\View\EngineInterface
{

protected $_mustache;

protected $_params;

public function __construct(Phalcon\Mvc\View $view, Phalcon\DI $di)
public function __construct($view, $di = null)
{
$this->_mustache = new Mustache_Engine();
parent::__construct($view, $di);
Expand All @@ -53,12 +53,12 @@ public function render($path, $params, $mustClean=false)
/**
* Adapter to use Twig library as templating engine
*/
class My_Twig_Engine extends \Phalcon\Mvc\View\Engine
class My_Twig_Engine extends \Phalcon\Mvc\View\Engine implements \Phalcon\Mvc\View\EngineInterface
{

protected $_twig;

public function __construct(Phalcon\Mvc\View $view, Phalcon\DI $di)
public function __construct($view, $di = null)
{
$loader = new Twig_Loader_Filesystem($view->getViewsDir());
$this->_twig = new Twig_Environment($loader);
Expand Down

0 comments on commit e0a5a8a

Please sign in to comment.