MiniAsset\Test\TestCase\AssetMiddlewareTest::testInvokeIncorrectPrefix PHP Method

testInvokeIncorrectPrefix() public method

    public function testInvokeIncorrectPrefix()
    {
        $request = ServerRequestFactory::fromGlobals(['REQUEST_URI' => '/wrong/assets/path']);
        $response = new Response();
        $next = function ($req, $res) {
            return $res;
        };
        $res = $this->middleware->__invoke($request, $response, $next);
        $this->assertSame($res, $response);
    }