tests: sort test data in alphabetic order and merge duplicates

This commit is contained in:
Aneesh Relan 2021-10-08 22:24:17 +05:30
parent 705c2a5785
commit f2d6820ca2

View File

@ -4,30 +4,27 @@ describe('Extension tests', () => {
it.each`
extension | version | output
${'none'} | ${'7.4'} | ${'Disable-AllShared'}
${'Xdebug'} | ${'7.4'} | ${'Add-Extension xdebug'}
${'sqlite'} | ${'7.4'} | ${'Add-Extension sqlite3'}
${':intl'} | ${'7.4'} | ${'Disable-Extension intl'}
${'phalcon4'} | ${'7.4'} | ${'Add-Phalcon phalcon4'}
${'pecl_http'} | ${'7.4'} | ${'Add-Http'}
${'ioncube'} | ${'7.4'} | ${'Add-Ioncube'}
${'oci8'} | ${'7.4'} | ${'Add-Oci oci8'}
${'pdo_oci'} | ${'7.4'} | ${'Add-Oci pdo_oci'}
${'ast-beta'} | ${'7.4'} | ${'Add-Extension ast beta'}
${'grpc-1.2.3'} | ${'7.4'} | ${'Add-Extension grpc stable 1.2.3'}
${'inotify-1.2.3alpha2'} | ${'7.4'} | ${'Add-Extension inotify alpha 1.2.3'}
${'sqlsrv-1.2.3preview1'} | ${'7.4'} | ${'Add-Extension sqlsrv devel 1.2.3'}
${'pcov'} | ${'5.6'} | ${'Add-Log "$cross" "pcov" "pcov is not supported on PHP 5.6"'}
${'xdebug2'} | ${'7.2'} | ${'Add-Extension xdebug stable 2.9.8'}
${'mysql'} | ${'7.4'} | ${'Add-Extension mysqli'}
${'mysql'} | ${'7.4'} | ${'Add-Extension mysqlnd'}
${'mysql'} | ${'5.5'} | ${'Add-Extension mysql'}
${'mysql'} | ${'5.5'} | ${'Add-Extension mysqli'}
${'mysql'} | ${'5.5'} | ${'Add-Extension mysqlnd'}
${'phalcon3'} | ${'7.2'} | ${'Add-Phalcon phalcon3'}
${'blackfire'} | ${'7.3'} | ${'Add-Blackfire blackfire'}
${'blackfire-1.31.0'} | ${'7.3'} | ${'Add-Blackfire blackfire-1.31.0'}
${'grpc-1.2.3'} | ${'7.4'} | ${'Add-Extension grpc stable 1.2.3'}
${'inotify-1.2.3alpha2'} | ${'7.4'} | ${'Add-Extension inotify alpha 1.2.3'}
${'ioncube'} | ${'7.4'} | ${'Add-Ioncube'}
${'mongodb-mongodb/mongo-php-driver@master'} | ${'7.3'} | ${'Add-Log "$cross" "mongodb-mongodb/mongo-php-driver@master" "mongodb-mongodb/mongo-php-driver@master is not supported on PHP 7.3"'}
`(
${'mysql'} | ${'7.4'} | ${'Add-Extension mysqli\nAdd-Extension mysqlnd'}
${'mysql'} | ${'5.5'} | ${'Add-Extension mysql\nAdd-Extension mysqli\nAdd-Extension mysqlnd'}
${'oci8'} | ${'7.4'} | ${'Add-Oci oci8'}
${'pcov'} | ${'5.6'} | ${'Add-Log "$cross" "pcov" "pcov is not supported on PHP 5.6"'}
${'pdo_oci'} | ${'7.4'} | ${'Add-Oci pdo_oci'}
${'pecl_http'} | ${'7.4'} | ${'Add-Http'}
${'phalcon3'} | ${'7.2'} | ${'Add-Phalcon phalcon3'}
${'phalcon4'} | ${'7.4'} | ${'Add-Phalcon phalcon4'}
${'sqlite'} | ${'7.4'} | ${'Add-Extension sqlite3'}
${'sqlsrv-1.2.3preview1'} | ${'7.4'} | ${'Add-Extension sqlsrv devel 1.2.3'}
${'Xdebug'} | ${'7.4'} | ${'Add-Extension xdebug'}
${'xdebug2'} | ${'7.2'} | ${'Add-Extension xdebug stable 2.9.8'}
`(
'checking addExtensionOnWindows for extension $extension on version $version',
async ({extension, version, output}) => {
expect(
@ -39,33 +36,31 @@ describe('Extension tests', () => {
it.each`
extension | version | output
${'none'} | ${'7.4'} | ${'disable_all_shared'}
${'Xdebug'} | ${'7.4'} | ${'add_extension xdebug'}
${'sqlite'} | ${'7.4'} | ${'add_extension sqlite3'}
${':intl'} | ${'7.4'} | ${'disable_extension intl'}
${'ast-beta'} | ${'7.4'} | ${'add_unstable_extension ast beta extension'}
${'pdo_mysql'} | ${'7.4'} | ${'add_pdo_extension mysql'}
${'pdo-odbc'} | ${'7.4'} | ${'add_pdo_extension odbc'}
${'grpc-1.2.3'} | ${'7.4'} | ${'add_pecl_extension grpc 1.2.3 extension'}
${'xdebug-alpha'} | ${'7.4'} | ${'add_unstable_extension xdebug alpha zend_extension'}
${'pcov'} | ${'5.6'} | ${'add_log "$cross" "pcov" "pcov is not supported on PHP 5.6'}
${'gearman'} | ${'5.6'} | ${'add_gearman'}
${'gearman'} | ${'7.4'} | ${'add_gearman'}
${'couchbase'} | ${'5.6'} | ${'add_couchbase'}
${'couchbase'} | ${'7.4'} | ${'add_couchbase'}
${'pdo_cubrid'} | ${'7.0'} | ${'add_cubrid pdo_cubrid'}
${'pdo_cubrid'} | ${'7.4'} | ${'add_pdo_extension cubrid'}
${'xdebug2'} | ${'7.2'} | ${'add_pecl_extension xdebug 2.9.8 zend_extension'}
${'phalcon3'} | ${'7.3'} | ${'add_phalcon phalcon3'}
${'ioncube'} | ${'7.3'} | ${'add_ioncube'}
${'geos'} | ${'7.3'} | ${'add_geos'}
${'pecl_http'} | ${'7.3'} | ${'add_http'}
${'http-1.2.3'} | ${'7.3'} | ${'add_http http-1.2.3'}
${'oci8'} | ${'7.3'} | ${'add_oci oci8'}
${'pdo_oci'} | ${'7.3'} | ${'add_oci pdo_oci'}
${'blackfire'} | ${'7.3'} | ${'add_blackfire blackfire'}
${'blackfire-1.31.0'} | ${'7.3'} | ${'add_blackfire blackfire-1.31.0'}
${'couchbase'} | ${'7.4'} | ${'add_couchbase'}
${'gearman'} | ${'5.6'} | ${'add_gearman'}
${'geos'} | ${'7.3'} | ${'add_geos'}
${'grpc-1.2.3'} | ${'7.4'} | ${'add_pecl_extension grpc 1.2.3 extension'}
${'http-1.2.3'} | ${'7.3'} | ${'add_http http-1.2.3'}
${'intl-65.1'} | ${'5.6'} | ${'add_intl intl-65.1'}
${'ioncube'} | ${'7.3'} | ${'add_ioncube'}
${'mongodb-mongodb/mongo-php-driver@master'} | ${'7.3'} | ${'add_extension_from_source mongodb https://github.com mongodb mongo-php-driver master extension'}
${'oci8'} | ${'7.3'} | ${'add_oci oci8'}
${'pcov'} | ${'5.6'} | ${'add_log "$cross" "pcov" "pcov is not supported on PHP 5.6'}
${'pdo-odbc'} | ${'7.4'} | ${'add_pdo_extension odbc'}
${'pdo_cubrid'} | ${'7.0'} | ${'add_cubrid pdo_cubrid'}
${'pdo_cubrid'} | ${'7.4'} | ${'add_pdo_extension cubrid'}
${'pdo_mysql'} | ${'7.4'} | ${'add_pdo_extension mysql'}
${'pdo_oci'} | ${'7.3'} | ${'add_oci pdo_oci'}
${'pecl_http'} | ${'7.3'} | ${'add_http'}
${'phalcon3'} | ${'7.3'} | ${'add_phalcon phalcon3'}
${'sqlite'} | ${'7.4'} | ${'add_extension sqlite3'}
${'Xdebug'} | ${'7.4'} | ${'add_extension xdebug'}
${'xdebug-alpha'} | ${'7.4'} | ${'add_unstable_extension xdebug alpha zend_extension'}
${'xdebug2'} | ${'7.2'} | ${'add_pecl_extension xdebug 2.9.8 zend_extension'}
`(
'checking addExtensionOnLinux for extension $extension on version $version',
async ({extension, version, output}) => {
@ -78,31 +73,29 @@ describe('Extension tests', () => {
it.each`
extension | version | output
${'none'} | ${'7.2'} | ${'disable_all_shared'}
${'amqp'} | ${'7.2'} | ${'add_brew_extension amqp extension'}
${'Xdebug'} | ${'7.2'} | ${'add_brew_extension xdebug zend_extension'}
${'sqlite'} | ${'7.2'} | ${'add_extension sqlite3'}
${':intl'} | ${'7.2'} | ${'disable_extension intl'}
${'amqp'} | ${'7.2'} | ${'add_brew_extension amqp extension'}
${'ast-beta'} | ${'7.2'} | ${'add_unstable_extension ast beta extension'}
${'grpc-1.2.3'} | ${'7.2'} | ${'add_pecl_extension grpc 1.2.3 extension'}
${'couchbase'} | ${'5.6'} | ${'add_couchbase'}
${'couchbase'} | ${'7.3'} | ${'add_couchbase'}
${'ioncube'} | ${'7.3'} | ${'add_ioncube'}
${'geos'} | ${'7.3'} | ${'add_geos'}
${'pecl_http'} | ${'7.3'} | ${'add_http'}
${'http-1.2.3'} | ${'7.3'} | ${'add_http http-1.2.3'}
${'oci8'} | ${'7.3'} | ${'add_oci oci8'}
${'pdo_oci'} | ${'7.3'} | ${'add_oci pdo_oci'}
${'pcov'} | ${'5.6'} | ${'add_log "$cross" "pcov" "pcov is not supported on PHP 5.6"'}
${'pcov'} | ${'7.2'} | ${'add_brew_extension pcov'}
${'xdebug'} | ${'5.6'} | ${'add_brew_extension xdebug'}
${'xdebug'} | ${'7.0'} | ${'add_brew_extension xdebug'}
${'xdebug2'} | ${'7.2'} | ${'add_brew_extension xdebug2'}
${'imagick'} | ${'5.5'} | ${'add_extension imagick'}
${'blackfire'} | ${'7.3'} | ${'add_blackfire blackfire'}
${'blackfire-1.31.0'} | ${'7.3'} | ${'add_blackfire blackfire-1.31.0'}
${'couchbase'} | ${'5.6'} | ${'add_couchbase'}
${'does_not_exist'} | ${'7.2'} | ${'add_extension does_not_exist'}
${'geos'} | ${'7.3'} | ${'add_geos'}
${'grpc-1.2.3'} | ${'7.2'} | ${'add_pecl_extension grpc 1.2.3 extension'}
${'http-1.2.3'} | ${'7.3'} | ${'add_http http-1.2.3'}
${'imagick'} | ${'5.5'} | ${'add_extension imagick'}
${'ioncube'} | ${'7.3'} | ${'add_ioncube'}
${'mongodb-mongodb/mongo-php-driver@master'} | ${'7.2'} | ${'add_extension_from_source mongodb https://github.com mongodb mongo-php-driver master extension'}
`(
${'oci8'} | ${'7.3'} | ${'add_oci oci8'}
${'pcov'} | ${'5.6'} | ${'add_log "$cross" "pcov" "pcov is not supported on PHP 5.6"'}
${'pcov'} | ${'7.2'} | ${'add_brew_extension pcov'}
${'pdo_oci'} | ${'7.3'} | ${'add_oci pdo_oci'}
${'pecl_http'} | ${'7.3'} | ${'add_http'}
${'sqlite'} | ${'7.2'} | ${'add_extension sqlite3'}
${'Xdebug'} | ${'7.2'} | ${'add_brew_extension xdebug zend_extension'}
${'xdebug'} | ${'7.0'} | ${'add_brew_extension xdebug'}
${'xdebug2'} | ${'7.2'} | ${'add_brew_extension xdebug2'}
`(
'checking addExtensionOnDarwin for extension $extension on version $version',
async ({extension, version, output}) => {
expect(