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

Commit

Permalink
Fix failing tests after merging from insekticid
Browse files Browse the repository at this point in the history
- Ensured tests use PhpRenderer
- Fixed failing tests for each class modified by insekticid
  • Loading branch information
weierophinney committed Aug 25, 2011
1 parent ce34328 commit f86842a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
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 f86842a

Please sign in to comment.