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

Commit

Permalink
Merge branch 'hotfix/fix-tests-dependencies' of https://github.com/Ma…
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Jul 23, 2012
10 parents 72c713c + 8ab0513 + 91eef93 + fce24bf + c98293e + ec0fa7a + 2480ecd + 6cbdeb6 + 0199841 + 19c47e8 commit 8ee5274
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ReCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class ReCaptcha extends AbstractAdapter
/**
* Recaptcha service object
*
* @var Zend_Service_Recaptcha
* @var ReCaptchaService
*/
protected $service;

Expand Down
8 changes: 8 additions & 0 deletions test/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ public function testCanCreateImageCaptchaUsingShortName()

public function testCanCreateReCaptcha()
{
if (!constant('TESTS_ZEND_CAPTCHA_RECAPTCHA_SUPPORT')) {
$this->markTestSkipped('Enable TESTS_ZEND_CAPTCHA_RECAPTCHA_SUPPORT to test PDF render');
}

$captcha = Captcha\Factory::factory(array(
'class' => 'Zend\Captcha\ReCaptcha',
'options' => array(
Expand All @@ -160,6 +164,10 @@ public function testCanCreateReCaptcha()

public function testCanCreateReCaptchaUsingShortName()
{
if (!constant('TESTS_ZEND_CAPTCHA_RECAPTCHA_SUPPORT')) {
$this->markTestSkipped('Enable TESTS_ZEND_CAPTCHA_RECAPTCHA_SUPPORT to test PDF render');
}

$captcha = Captcha\Factory::factory(array(
'class' => 'recaptcha',
'options' => array(
Expand Down
2 changes: 1 addition & 1 deletion test/ImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function setUp()
$this->captcha = new ImageCaptcha(array(
'sessionClass' => 'ZendTest\Captcha\TestAsset\SessionContainer',
'imgDir' => $this->testDir,
'font' => __DIR__. '/../Pdf/_fonts/Vera.ttf',
'font' => __DIR__. '/_files/Vera.ttf',
));
}

Expand Down
4 changes: 4 additions & 0 deletions test/ReCaptchaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class ReCaptchaTest extends \PHPUnit_Framework_TestCase
*/
public function setUp()
{
if (!constant('TESTS_ZEND_CAPTCHA_RECAPTCHA_SUPPORT')) {
$this->markTestSkipped('Enable TESTS_ZEND_CAPTCHA_RECAPTCHA_SUPPORT to test PDF render');
}

if (isset($this->word)) {
unset($this->word);
}
Expand Down
Binary file added test/_files/Vera.ttf
Binary file not shown.

0 comments on commit 8ee5274

Please sign in to comment.