ReleaseInfoProvider example

new MockResponse(json_encode([
                '6.5.0.0-rc1',
                '6.4.20.0',
                '6.4.19.0',
                '6.4.18.0',
                '6.4.12.0',
                '6.4.11.0',
                '6.3.5.0',
            ], \JSON_THROW_ON_ERROR)),
        ]);

        $releaseInfoProvider = new ReleaseInfoProvider($mockClient);

        $releaseInfo = $releaseInfoProvider->fetchUpdateVersions('6.4.0.0');

        static::assertSame(
            [
                '6.5.0.0-rc1',
                '6.4.20.0',
                '6.4.19.0',
                '6.4.18.0',
            ],
            $releaseInfo
        );
Home | Imprint | This part of the site doesn't use cookies.