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', remote-tracking branch 'upstream/master'
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 3 additions and 36 deletions.
4 changes: 0 additions & 4 deletions test/CommonWordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Captcha
*/

namespace ZendTest\Captcha;

/**
* @category Zend
* @package Zend_Captcha
* @subpackage UnitTests
* @group Zend_Captcha
*/
abstract class CommonWordTest extends \PHPUnit_Framework_TestCase
Expand Down
4 changes: 0 additions & 4 deletions test/DumbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Captcha
*/

namespace ZendTest\Captcha;

use Zend\Captcha\Dumb as DumbCaptcha;

/**
* @category Zend
* @package Zend_Captcha
* @subpackage UnitTests
* @group Zend_Captcha
*/
class DumbTest extends CommonWordTest
Expand Down
6 changes: 0 additions & 6 deletions test/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Captcha
*/

namespace ZendTest\Captcha;
Expand All @@ -14,11 +13,6 @@
use PHPUnit_Framework_TestCase as TestCase;
use Zend\Captcha;

/**
* @category Zend
* @package Zend_Captcha
* @subpackage UnitTest
*/
class FactoryTest extends TestCase
{
protected $testDir;
Expand Down
4 changes: 0 additions & 4 deletions test/FigletTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Captcha
*/

namespace ZendTest\Captcha;
Expand All @@ -15,9 +14,6 @@
use Zend\Session\Container as SessionContainer;

/**
* @category Zend
* @package Zend_Captcha
* @subpackage UnitTests
* @group Zend_Captcha
*/
class FigletTest extends CommonWordTest
Expand Down
4 changes: 0 additions & 4 deletions test/ImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Captcha
*/

namespace ZendTest\Captcha;
Expand All @@ -14,9 +13,6 @@
use Zend\Captcha\Image as ImageCaptcha;

/**
* @category Zend
* @package Zend_Captcha
* @subpackage UnitTests
* @group Zend_Captcha
*/
class ImageTest extends \PHPUnit_Framework_TestCase
Expand Down
4 changes: 0 additions & 4 deletions test/ReCaptchaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Captcha
*/

namespace ZendTest\Captcha;
Expand All @@ -14,9 +13,6 @@
use ZendService\ReCaptcha\ReCaptcha as ReCaptchaService;

/**
* @category Zend
* @package Zend_Captcha
* @subpackage UnitTests
* @group Zend_Captcha
*/
class ReCaptchaTest extends \PHPUnit_Framework_TestCase
Expand Down
6 changes: 0 additions & 6 deletions test/TestAsset/MockCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,12 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Captcha
*/

namespace ZendTest\Captcha\TestAsset;

use Zend\Captcha\AdapterInterface;

/**
* @category Zend
* @package Zend_Captcha
* @subpackage UnitTest
*/
class MockCaptcha implements AdapterInterface
{
public $name;
Expand Down
7 changes: 3 additions & 4 deletions test/TestAsset/SessionContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Captcha
*/

namespace ZendTest\Captcha\TestAsset;
Expand All @@ -17,7 +16,7 @@ class SessionContainer
public function __get($name)
{
if ('word' == $name) {
return self::$_word;
return static::$_word;
}

return null;
Expand All @@ -26,15 +25,15 @@ public function __get($name)
public function __set($name, $value)
{
if ('word' == $name) {
self::$_word = $value;
static::$_word = $value;
} else {
$this->$name = $value;
}
}

public function __isset($name)
{
if (('word' == $name) && (null !== self::$_word)) {
if (('word' == $name) && (null !== static::$_word)) {
return true;
}

Expand Down

0 comments on commit 26f0e1e

Please sign in to comment.