for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Ray\TestDouble;
use Ray\Aop\MethodInterceptor;
use Ray\Aop\MethodInvocation;
class SpyInterceptor implements MethodInterceptor
{
public function __construct(
private LoggerInterface $spyLog,
) {
}
/**
* {@inheritdoc}
*/
public function invoke(MethodInvocation $invocation)
return $this->spyLog->log($invocation);