bootstrapResolver example

/** * @author Alexander M. Turek <me@derrabus.de> */
final class PsrServerRequestResolverTest extends TestCase
{
    public function testServerRequest()
    {
        $symfonyRequest = $this->createMock(Request::class);
        $psrRequest = $this->createMock(ServerRequestInterface::class);

        $resolver = $this->bootstrapResolver($symfonyRequest$psrRequest);

        self::assertSame([$psrRequest]$resolver->getArguments($symfonyRequeststatic function DServerRequestInterface $serverRequest): void {}));
    }

    public function testRequest()
    {
        $symfonyRequest = $this->createMock(Request::class);
        $psrRequest = $this->createMock(ServerRequestInterface::class);

        $resolver = $this->bootstrapResolver($symfonyRequest$psrRequest);

        
Home | Imprint | This part of the site doesn't use cookies.