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' into ValidatorMessages
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 19 changed files with 3 additions and 71 deletions.
1 change: 0 additions & 1 deletion src/Adapter/DbTable/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace Zend\Authentication\Adapter\DbTable;


use stdClass;
use Zend\Authentication\Result as AuthenticationResult;
use Zend\Authentication\Adapter\AbstractAdapter as BaseAdapter;
Expand Down
2 changes: 1 addition & 1 deletion src/Adapter/DbTable/CallbackCheckAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(
if (null !== $credentialValidationCallback) {
$this->setCredentialValidationCallback($credentialValidationCallback);
} else {
$this->setCredentialValidationCallback(function($a, $b) {
$this->setCredentialValidationCallback(function ($a, $b) {
return $a === $b;
});
}
Expand Down
6 changes: 1 addition & 5 deletions test/Adapter/DbTable/CallbackCheckAdapterTest.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_Authentication
*/

namespace ZendTest\Authentication\Adapter\DbTable;
Expand All @@ -16,9 +15,6 @@
use Zend\Db\Sql\Select as DBSelect;

/**
* @category Zend
* @package Zend_Auth
* @subpackage UnitTests
* @group Zend_Auth
* @group Zend_Db_Table
*/
Expand Down Expand Up @@ -86,7 +82,7 @@ public function testAuthenticateSuccess()
*/
public function testAuthenticateSuccessWithCallback()
{
$this->_adapter = new Adapter\DbTable($this->_db, 'users', 'username', 'password', null, function($a, $b){return $a === $b;});
$this->_adapter = new Adapter\DbTable($this->_db, 'users', 'username', 'password', null, function ($a, $b) {return $a === $b;});
$this->_adapter->setIdentity('my_username');
$this->_adapter->setCredential('my_password');
$result = $this->_adapter->authenticate();
Expand Down
4 changes: 0 additions & 4 deletions test/Adapter/DbTable/CredentialTreatmentAdapterTest.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_Authentication
*/

namespace ZendTest\Authentication\Adapter\DbTable;
Expand All @@ -16,9 +15,6 @@
use Zend\Db\Sql\Select as DBSelect;

/**
* @category Zend
* @package Zend_Auth
* @subpackage UnitTests
* @group Zend_Auth
* @group Zend_Db_Table
*/
Expand Down
4 changes: 0 additions & 4 deletions test/Adapter/DbTableTest.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_Authentication
*/

namespace ZendTest\Authentication\Adapter;

use Zend\Authentication\Adapter;

/**
* @category Zend
* @package Zend_Auth
* @subpackage UnitTests
* @group Zend_Auth
* @group Zend_Db_Table
*/
Expand Down
4 changes: 0 additions & 4 deletions test/Adapter/DigestTest.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_Authentication
*/

namespace ZendTest\Authentication\Adapter;
Expand All @@ -14,9 +13,6 @@
use Zend\Authentication;

/**
* @category Zend
* @package Zend_Auth
* @subpackage UnitTests
* @group Zend_Auth
*/
class DigestTest extends \PHPUnit_Framework_TestCase
Expand Down
7 changes: 0 additions & 7 deletions test/Adapter/Http/ApacheResolverTest.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_Authentication
*/

namespace ZendTest\Authentication\Adapter\Http;
Expand All @@ -14,9 +13,6 @@
use Zend\Authentication\Result as AuthResult;

/**
* @category Zend
* @package Zend_Auth
* @subpackage UnitTests
* @group Zend_Auth
*/
class ApacheTest extends \PHPUnit_Framework_TestCase
Expand Down Expand Up @@ -108,9 +104,6 @@ public function testConstructInvalid()
$apache = new Apache($this->_badPath);
}

/**
*
*/
public function providePasswordFiles()
{
$path = __DIR__ . '/TestAsset';
Expand Down
6 changes: 1 addition & 5 deletions test/Adapter/Http/AuthTest.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_Authentication
*/

namespace ZendTest\Authentication\Adapter\Http;
Expand All @@ -16,9 +15,6 @@
use Zend\Http\Response;

/**
* @category Zend
* @package Zend_Auth
* @subpackage UnitTests
* @group Zend_Auth
*/
class AuthTest extends \PHPUnit_Framework_TestCase
Expand Down Expand Up @@ -186,7 +182,7 @@ public function testBasicAuthBadCreds()

public function testBasicAuthBadUser()
{
// Attempt Basic Authentication with a nonexistant username and
// Attempt Basic Authentication with a nonexistent username and
// password

// The expected Basic Www-Authenticate header value
Expand Down
4 changes: 0 additions & 4 deletions test/Adapter/Http/FileResolverTest.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_Authentication
*/

namespace ZendTest\Authentication\Adapter\Http;

use Zend\Authentication\Adapter\Http;

/**
* @category Zend
* @package Zend_Auth
* @subpackage UnitTests
* @group Zend_Auth
*/
class FileTest extends \PHPUnit_Framework_TestCase
Expand Down
4 changes: 0 additions & 4 deletions test/Adapter/Http/ObjectTest.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_Authentication
*/

namespace ZendTest\Authentication\Adapter\Http;
Expand All @@ -18,9 +17,6 @@
use Zend\Http\Response;

/**
* @category Zend
* @package Zend_Auth
* @subpackage UnitTests
* @group Zend_Auth
*/
class ObjectTest extends \PHPUnit_Framework_TestCase
Expand Down
4 changes: 0 additions & 4 deletions test/Adapter/Http/ProxyTest.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_Authentication
*/

namespace ZendTest\Authentication\Adapter\Http;
Expand All @@ -16,9 +15,6 @@
use Zend\Http\Response;

/**
* @category Zend
* @package Zend_Auth
* @subpackage UnitTests
* @group Zend_Auth
*/
class ProxyTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion test/Adapter/Http/TestAsset/BasicAuthObjectResolver.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_Authentication
*/

namespace ZendTest\Authentication\Adapter\Http\TestAsset;
Expand Down
4 changes: 0 additions & 4 deletions test/Adapter/Ldap/OfflineTest.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_Authentication
*/

namespace ZendTest\Authentication\Adapter\Ldap;
Expand All @@ -14,9 +13,6 @@
use Zend\Ldap;

/**
* @category Zend
* @package Zend_Auth
* @subpackage UnitTests
* @group Zend_Auth
*/
class OfflineTest extends \PHPUnit_Framework_TestCase
Expand Down
4 changes: 0 additions & 4 deletions test/Adapter/Ldap/OnlineTest.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_Authentication
*/

namespace ZendTest\Authentication\Adapter\Ldap;
Expand All @@ -15,9 +14,6 @@
use Zend\Ldap;

/**
* @category Zend
* @package Zend_Auth
* @subpackage UnitTests
* @group Zend_Auth
*/
class OnlineTest extends \PHPUnit_Framework_TestCase
Expand Down
6 changes: 0 additions & 6 deletions test/Adapter/TestAsset/OpenIdResponseHelper.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_Authentication
*/

namespace ZendTest\Authentication\Adapter\TestAsset;
Expand All @@ -15,11 +14,6 @@

OpenId::$exitOnRedirect = false;

/**
* @category Zend
* @package Zend_Authentication
* @subpackage UnitTests
*/
class ResponseHelper extends Response
{
private $_canSendHeaders;
Expand Down
4 changes: 0 additions & 4 deletions test/AuthenticationServiceTest.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_Authentication
*/

namespace ZendTest\Authentication;
Expand All @@ -14,9 +13,6 @@
use Zend\Authentication as Auth;

/**
* @category Zend
* @package Zend_Auth
* @subpackage UnitTests
* @group Zend_Auth
*/
class AuthenticationServiceTest extends \PHPUnit_Framework_TestCase
Expand Down
4 changes: 0 additions & 4 deletions test/Storage/ChainTest.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_Uri
*/

namespace ZendTest\Authentication\Storage;
Expand All @@ -17,9 +16,6 @@
use PHPUnit_Framework_TestCase as TestCase;

/**
* @category Zend
* @package Zend_Auth
* @subpackage UnitTests
* @group Zend_Auth
*/
class ChainTest extends TestCase
Expand Down
1 change: 0 additions & 1 deletion test/TestAsset/SuccessAdapter.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_Authentication
*/

namespace ZendTest\Authentication\TestAsset;
Expand Down
4 changes: 0 additions & 4 deletions test/Validator/AuthenticationTest.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_I18n
*/

namespace ZendTest\Validator;
Expand All @@ -16,9 +15,6 @@
use ZendTest\Authentication as AuthTest;

/**
* @category Zend
* @package Zend_Validator
* @subpackage UnitTests
* @group Zend_Validator
*/
class AthenticationTest extends \PHPUnit_Framework_TestCase
Expand Down

0 comments on commit f045e85

Please sign in to comment.