Empty memcache session in phpunit

I have 2 APIS (slim-framework) that share sessions through memcached, which make some requests between them.

If I make the requests from the front end (vuejs) everything works correctly.

When I make the request through an integration test with PHPUNIT, the second API always returns a blank session, so the middleware (it is based un tuupola/slim-jwt-auth) returns 401.

Thanks for the help.