instance('path', '/tmp'); $app->instance('path.storage.app', '/tmp'); $serviceProvider = new VersionServiceProvider($app); $serviceProvider->register(); $this->assertArrayHasKey(Version::class, $app->contextual); } }