mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-07-25 08:09:08 +07:00
Only use config.platform.php, as it's guaranteed to be the required version of PHP
This commit is contained in:
@ -300,13 +300,6 @@ describe('Utils tests', () => {
|
||||
);
|
||||
expect(await utils.readPHPVersion()).toBe('7.4.33');
|
||||
|
||||
existsSync
|
||||
.mockReturnValueOnce(false)
|
||||
.mockReturnValueOnce(false)
|
||||
.mockReturnValueOnce(true);
|
||||
readFileSync.mockReturnValue('{ "require": { "php": "^8.2" } }');
|
||||
expect(await utils.readPHPVersion()).toBe('^8.2');
|
||||
|
||||
existsSync.mockClear();
|
||||
readFileSync.mockClear();
|
||||
});
|
||||
|
Reference in New Issue
Block a user