The expression return new EOffice\Core\...rap()->getApplication() also could return the type EOffice\Core\Application which is incompatible with the return type mandated by Laravel\Lumen\Testing\Te...se::createApplication() of Symfony\Component\HttpKernel\HttpKernelInterface.