for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Eps\Req2CmdBundle\CommandExtractor;
use Symfony\Component\HttpFoundation\Request;
class MockCommandExtractor implements CommandExtractorInterface
{
private $toReturn;
/**
* {@inheritdoc}
*/
public function extractFromRequest(Request $request, string $cmdClassName)
return $this->toReturn;
}
public function willReturn($command): void
$this->toReturn = $command;