This commit is contained in:
2025-11-20 16:34:30 +01:00
parent 15d1a30e88
commit 4e4351e833
631 changed files with 130125 additions and 36318 deletions

View File

@@ -1,5 +1,4 @@
<?php
/**
* The interface that all hash implementations must implement
*
@@ -12,6 +11,7 @@
* @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;
/**
@@ -21,21 +21,21 @@ namespace PasswordLibTest\Mocks;
* @package Hash
* @author Anthony Ferrara <ircmaxell@ircmaxell.com>
*/
class AbstractMock
{
class AbstractMock {
protected $callbacks = array();
public static function init()
{
}
public function __construct(array $callbacks = array())
{
public static function init() {}
public function __construct(array $callbacks = array()) {
$this->callbacks = $callbacks;
}
public function __call($name, array $args = array())
{
public function __call($name, array $args = array()) {
if (isset($this->callbacks[$name])) {
return call_user_func_array($this->callbacks[$name], $args);
}
return null;
}
}