mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-08-31 18:04:10 +07:00
Use EXTENSION_PATH to specify subdirectory in add_extension_from_source
This commit is contained in:
@ -154,7 +154,7 @@ describe('Extension tests', () => {
|
||||
'linux'
|
||||
);
|
||||
expect(linux).toContain(
|
||||
'add_extension_from_source mongodb https://github.com mongodb mongo-php-driver . master extension'
|
||||
'add_extension_from_source mongodb https://github.com mongodb mongo-php-driver master extension'
|
||||
);
|
||||
});
|
||||
|
||||
@ -252,7 +252,7 @@ describe('Extension tests', () => {
|
||||
'darwin'
|
||||
);
|
||||
expect(darwin).toContain(
|
||||
'add_extension_from_source mongodb https://github.com mongodb mongo-php-driver . master extension'
|
||||
'add_extension_from_source mongodb https://github.com mongodb mongo-php-driver master extension'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
@ -267,7 +267,7 @@ describe('Utils tests', () => {
|
||||
'extension'
|
||||
)
|
||||
).toContain(
|
||||
'\nadd_extension_from_source ext https://github.com org-name repo-name . release extension'
|
||||
'\nadd_extension_from_source ext https://github.com org-name repo-name release extension'
|
||||
);
|
||||
expect(
|
||||
await utils.parseExtensionSource(
|
||||
@ -275,15 +275,15 @@ describe('Utils tests', () => {
|
||||
'extension'
|
||||
)
|
||||
).toContain(
|
||||
'\nadd_extension_from_source ext https://sub.domain.tld org repo . release extension'
|
||||
'\nadd_extension_from_source ext https://sub.domain.tld org repo release extension'
|
||||
);
|
||||
expect(
|
||||
await utils.parseExtensionSource(
|
||||
'ext-https://sub.domain.XN--tld/org/repo/sub/dir@release',
|
||||
'ext-https://sub.domain.XN--tld/org/repo@release',
|
||||
'extension'
|
||||
)
|
||||
).toContain(
|
||||
'\nadd_extension_from_source ext https://sub.domain.XN--tld org repo sub/dir release extension'
|
||||
'\nadd_extension_from_source ext https://sub.domain.XN--tld org repo release extension'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user