update
This commit is contained in:
41
modules/pshowsso/vendor/ircmaxell/security-lib/test/Mocks/AbstractMock.php
vendored
Normal file
41
modules/pshowsso/vendor/ircmaxell/security-lib/test/Mocks/AbstractMock.php
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* The interface that all hash implementations must implement
|
||||
*
|
||||
* PHP version 5.3
|
||||
*
|
||||
* @category PHPPasswordLib
|
||||
* @package Hash
|
||||
* @author Anthony Ferrara <ircmaxell@ircmaxell.com>
|
||||
* @copyright 2011 The Authors
|
||||
* @license http://opensource.org/licenses/bsd-license.php New BSD License
|
||||
* @license http://www.gnu.org/licenses/lgpl-2.1.html LGPL v 2.1
|
||||
*/
|
||||
namespace PasswordLibTest\Mocks;
|
||||
|
||||
/**
|
||||
* The interface that all hash implementations must implement
|
||||
*
|
||||
* @category PHPPasswordLib
|
||||
* @package Hash
|
||||
* @author Anthony Ferrara <ircmaxell@ircmaxell.com>
|
||||
*/
|
||||
class AbstractMock
|
||||
{
|
||||
protected $callbacks = array();
|
||||
public static function init()
|
||||
{
|
||||
}
|
||||
public function __construct(array $callbacks = array())
|
||||
{
|
||||
$this->callbacks = $callbacks;
|
||||
}
|
||||
public function __call($name, array $args = array())
|
||||
{
|
||||
if (isset($this->callbacks[$name])) {
|
||||
return call_user_func_array($this->callbacks[$name], $args);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
30
modules/pshowsso/vendor/ircmaxell/security-lib/test/Mocks/Enum.php
vendored
Normal file
30
modules/pshowsso/vendor/ircmaxell/security-lib/test/Mocks/Enum.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* The interface that all hash implementations must implement
|
||||
*
|
||||
* PHP version 5.3
|
||||
*
|
||||
* @category PHPSecurityLib
|
||||
* @package Hash
|
||||
* @author Anthony Ferrara <ircmaxell@ircmaxell.com>
|
||||
* @copyright 2011 The Authors
|
||||
* @license http://opensource.org/licenses/bsd-license.php New BSD License
|
||||
* @license http://www.gnu.org/licenses/lgpl-2.1.html LGPL v 2.1
|
||||
*/
|
||||
namespace SecurityLibTest\Mocks;
|
||||
|
||||
/**
|
||||
* The interface that all hash implementations must implement
|
||||
*
|
||||
* @category PHPSecurityLib
|
||||
* @package Hash
|
||||
* @author Anthony Ferrara <ircmaxell@ircmaxell.com>
|
||||
*/
|
||||
class Enum extends \SecurityLib\Enum
|
||||
{
|
||||
const Value1 = 1;
|
||||
const Value2 = 2;
|
||||
const Value3 = 3;
|
||||
const Value4 = 4;
|
||||
}
|
||||
49
modules/pshowsso/vendor/ircmaxell/security-lib/test/Mocks/Factory.php
vendored
Normal file
49
modules/pshowsso/vendor/ircmaxell/security-lib/test/Mocks/Factory.php
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* The interface that all hash implementations must implement
|
||||
*
|
||||
* PHP version 5.3
|
||||
*
|
||||
* @category PHPSecurityLib
|
||||
* @package Hash
|
||||
* @author Anthony Ferrara <ircmaxell@ircmaxell.com>
|
||||
* @copyright 2011 The Authors
|
||||
* @license http://opensource.org/licenses/bsd-license.php New BSD License
|
||||
* @license http://www.gnu.org/licenses/lgpl-2.1.html LGPL v 2.1
|
||||
*/
|
||||
namespace SecurityLibTest\Mocks;
|
||||
|
||||
/**
|
||||
* The interface that all hash implementations must implement
|
||||
*
|
||||
* @category PHPSecurityLib
|
||||
* @package Hash
|
||||
* @author Anthony Ferrara <ircmaxell@ircmaxell.com>
|
||||
*/
|
||||
class Factory extends \SecurityLib\AbstractFactory
|
||||
{
|
||||
protected $callbacks = array();
|
||||
public static function init()
|
||||
{
|
||||
}
|
||||
public function __construct(array $callbacks = array())
|
||||
{
|
||||
$this->callbacks = $callbacks;
|
||||
}
|
||||
public function __call($name, array $args = array())
|
||||
{
|
||||
if (isset($this->callbacks[$name])) {
|
||||
return call_user_func_array($this->callbacks[$name], $args);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public function registerType($a1, $a2, $a3, $a4, $a5 = \false)
|
||||
{
|
||||
return parent::registerType($a1, $a2, $a3, $a4, $a5);
|
||||
}
|
||||
public function loadFiles($dir, $name, $method)
|
||||
{
|
||||
return parent::loadFiles($dir, $name, $method);
|
||||
}
|
||||
}
|
||||
28
modules/pshowsso/vendor/ircmaxell/security-lib/test/Mocks/Strength.php
vendored
Normal file
28
modules/pshowsso/vendor/ircmaxell/security-lib/test/Mocks/Strength.php
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* The interface that all hash implementations must implement
|
||||
*
|
||||
* PHP version 5.3
|
||||
*
|
||||
* @category PHPSecurityLib
|
||||
* @package Hash
|
||||
* @author Anthony Ferrara <ircmaxell@ircmaxell.com>
|
||||
* @copyright 2011 The Authors
|
||||
* @license http://opensource.org/licenses/bsd-license.php New BSD License
|
||||
* @license http://www.gnu.org/licenses/lgpl-2.1.html LGPL v 2.1
|
||||
*/
|
||||
namespace SecurityLibTest\Mocks;
|
||||
|
||||
/**
|
||||
* The interface that all hash implementations must implement
|
||||
*
|
||||
* @category PHPSecurityLib
|
||||
* @package Hash
|
||||
* @author Anthony Ferrara <ircmaxell@ircmaxell.com>
|
||||
*/
|
||||
class Strength extends \SecurityLib\Strength
|
||||
{
|
||||
const MEDIUMLOW = 4;
|
||||
const SUPERHIGH = 999;
|
||||
}
|
||||
Reference in New Issue
Block a user