Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of git://git.zendframework.com/zf
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Adapter.php
Expand Up @@ -52,7 +52,7 @@ public function generate();
* @param mixed $element
* @return string
*/
public function render(\Zend\View\ViewEngine $view = null, $element = null);
public function render(\Zend\View\Renderer $view = null, $element = null);

/**
* Set captcha name
Expand Down
2 changes: 1 addition & 1 deletion src/Dumb.php
Expand Up @@ -45,7 +45,7 @@ class Dumb extends Word
* @param mixed $element
* @return string
*/
public function render(\Zend\View\ViewEngine $view = null, $element = null)
public function render(\Zend\View\Renderer $view = null, $element = null)
{
return 'Please type this word backwards: <b>'
. strrev($this->getWord())
Expand Down
2 changes: 1 addition & 1 deletion src/Figlet.php
Expand Up @@ -76,7 +76,7 @@ public function generate()
* @param mixed $element
* @return string
*/
public function render(\Zend\View\ViewEngine $view = null, $element = null)
public function render(\Zend\View\Renderer $view = null, $element = null)
{
return '<pre>'
. $this->_figlet->render($this->getWord())
Expand Down
2 changes: 1 addition & 1 deletion src/Image.php
Expand Up @@ -624,7 +624,7 @@ protected function _gc()
* @param mixed $element
* @return string
*/
public function render(\Zend\View\ViewEngine $view = null, $element = null)
public function render(\Zend\View\Renderer $view = null, $element = null)
{
return '<img width="' . $this->getWidth() . '" height="' . $this->getHeight() . '" alt="' . $this->getImgAlt()
. '" src="' . $this->getImgUrl() . $this->getId() . $this->getSuffix() . '" />';
Expand Down
2 changes: 1 addition & 1 deletion src/ReCaptcha.php
Expand Up @@ -261,7 +261,7 @@ public function isValid($value, $context = null)
* @param mixed $element
* @return string
*/
public function render(\Zend\View\ViewEngine $view = null, $element = null)
public function render(\Zend\View\Renderer $view = null, $element = null)
{
return $this->getService()->getHTML();
}
Expand Down
2 changes: 1 addition & 1 deletion test/DumbTest.php
Expand Up @@ -62,7 +62,7 @@ public function testRendersWordInReverse()
{
$id = $this->captcha->generate('test');
$word = $this->captcha->getWord();
$html = $this->captcha->render(new \Zend\View\View);
$html = $this->captcha->render(new \Zend\View\PhpRenderer);
$this->assertContains(strrev($word), $html);
$this->assertNotContains($word, $html);
}
Expand Down
3 changes: 1 addition & 2 deletions test/FigletTest.php
Expand Up @@ -23,7 +23,7 @@
* @namespace
*/
namespace ZendTest\Captcha;
use Zend\View\View;
use Zend\View\PhpRenderer as View;

/**
* @category Zend
Expand Down Expand Up @@ -67,7 +67,6 @@ public function testCaptchaAdapterCreated()
public function getView()
{
$view = new View();
$view->addHelperPath(__DIR__ . '/../../../../library/Zend/View/Helper');
return $view;
}

Expand Down
4 changes: 2 additions & 2 deletions test/ImageTest.php
Expand Up @@ -23,7 +23,8 @@
* @namespace
*/
namespace ZendTest\Captcha;
use Zend\View\View,

use Zend\View\PhpRenderer as View,
Zend\Captcha\Image;

/**
Expand Down Expand Up @@ -106,7 +107,6 @@ protected function _getTmpDir()
public function getView()
{
$view = new View;
$view->addHelperPath(__DIR__ . '/../../../../library/Zend/View/Helper');
return $view;
}

Expand Down

0 comments on commit 32d2e16

Please sign in to comment.