for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Chubbyphp\Mock\Argument;
class ArgumentCallback implements ArgumentInterface
{
/**
* @var callable
*/
private $callback;
public function __construct(callable $callback)
$this->callback = $callback;
}
* @param mixed $argument
public function assert($argument, array $context)
$callback = $this->callback;
$callback($argument, $context);