Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong static property in JSON files did not fail unit tests #73

Closed
llaville opened this issue Apr 1, 2021 · 1 comment
Closed

Wrong static property in JSON files did not fail unit tests #73

llaville opened this issue Apr 1, 2021 · 1 comment
Assignees

Comments

@llaville
Copy link
Owner

llaville commented Apr 1, 2021

Bug report

OS

1. Host operating system and version: Ubuntu 18.04 LTS, Docker version 20.10.2, build 2291f61, Windows 20H2 (WSL2)
2. PHP version: all versions are affected
3. PHP CompatInfoDB version: 3.4.2
4. What git commit hash are you on?:
5. PHP extensions loaded? Uses either reference:list or db:list command depends on CompatInfoDB version:

Reference List
==============

 Description                  Type   Name       Provided Installed
 The apcu PHP extension       pecl   apcu       5.1.20   5.1.20
 The ast PHP extension        pecl   ast        1.0.10   1.0.10
 The bcmath PHP extension     bundle bcmath     8.0.3    8.0.3
 The bz2 PHP extension        bundle bz2        8.0.3    8.0.3
 The calendar PHP extension   bundle calendar   8.0.3    8.0.3
 The Core PHP extension       bundle core       8.0.3    8.0.3
 The ctype PHP extension      bundle ctype      8.0.3    8.0.3
 The curl PHP extension       bundle curl       8.0.3    8.0.3
 The date PHP extension       bundle date       8.0.3    8.0.3
 The dom PHP extension        bundle dom        8.0.3    20031129
 The enchant PHP extension    bundle enchant    8.0.3    8.0.3
 The exif PHP extension       bundle exif       8.0.3    8.0.3
 The fileinfo PHP extension   bundle fileinfo   8.0.3    8.0.3
 The filter PHP extension     bundle filter     8.0.3    8.0.3
 The ftp PHP extension        bundle ftp        8.0.3    8.0.3
 The gd PHP extension         bundle gd         8.0.3    8.0.3
 The gettext PHP extension    bundle gettext    8.0.3    8.0.3
 The gmp PHP extension        bundle gmp        8.0.3    8.0.3
 The hash PHP extension       bundle hash       8.0.3    8.0.3
 The http PHP extension       pecl   http       4.0.0    4.0.0
 The iconv PHP extension      bundle iconv      8.0.3    8.0.3
 The igbinary PHP extension   pecl   igbinary   3.2.1    3.2.1
 The imap PHP extension       bundle imap       8.0.3    8.0.3
 The intl PHP extension       bundle intl       8.0.3    8.0.3
 The json PHP extension       bundle json       8.0.3    8.0.3
 The ldap PHP extension       bundle ldap       8.0.3    8.0.3
 The libxml PHP extension     bundle libxml     8.0.3    8.0.3
 The lzf PHP extension        pecl   lzf        1.6.8    1.6.8
 The mailparse PHP extension  pecl   mailparse  3.1.1    3.1.1
 The mbstring PHP extension   bundle mbstring   8.0.3    8.0.3
 The mcrypt PHP extension     pecl   mcrypt     4.0.7    1.0.4
 The memcache PHP extension   pecl   memcache   8.0      4.0.5.2
 The memcached PHP extension  pecl   memcached  3.1.5    3.1.5
 The msgpack PHP extension    pecl   msgpack    2.1.2    2.1.2
 The mysqli PHP extension     bundle mysqli     8.0.3    8.0.3
 The OAuth PHP extension      pecl   oauth      2.0.7    2.0.7
 The oci8 PHP extension       pecl   oci8       3.0.1    3.0.1
 The OPcache PHP extension    bundle opcache    8.0.3    8.0.3
 The openssl PHP extension    bundle openssl    8.0.3    8.0.3
 The pcntl PHP extension      bundle pcntl      8.0.3    8.0.3
 The pcre PHP extension       bundle pcre       8.0.3    8.0.3
 The PDO PHP extension        bundle pdo        8.0.3    8.0.3
 The pgsql PHP extension      bundle pgsql      8.0.3    8.0.3
 The phar PHP extension       bundle phar       8.0.3    8.0.3
 The posix PHP extension      bundle posix      8.0.3    8.0.3
 The raphf PHP extension      pecl   raphf      2.0.1    2.0.1
 The rar PHP extension        pecl   rar        4.2.0    4.2.0
 The readline PHP extension   bundle readline   8.0.3    8.0.3
 The redis PHP extension      pecl   redis      5.3.4    5.3.3
 The Reflection PHP extension bundle reflection 8.0.3    8.0.3
 The session PHP extension    bundle session    8.0.3    8.0.3
 The shmop PHP extension      bundle shmop      8.0.3    8.0.3
 The SimpleXML PHP extension  bundle simplexml  8.0.3    8.0.3
 The snmp PHP extension       bundle snmp       8.0.3    8.0.3
 The soap PHP extension       bundle soap       8.0.3    8.0.3
 The sockets PHP extension    bundle sockets    8.0.3    8.0.3
 The solr PHP extension       pecl   solr       2.5.1    2.5.1
 The spl PHP extension        bundle spl        8.0.3    8.0.3
 The sqlite3 PHP extension    bundle sqlite3    8.0.3    8.0.3
 The standard PHP extension   bundle standard   8.0.3    8.0.3
 The sysvmsg PHP extension    bundle sysvmsg    8.0.3    8.0.3
 The sysvsem PHP extension    bundle sysvsem    8.0.3    8.0.3
 The sysvshm PHP extension    bundle sysvshm    8.0.3    8.0.3
 The tidy PHP extension       bundle tidy       8.0.3    8.0.3
 The tokenizer PHP extension  bundle tokenizer  8.0.3    8.0.3
 The xdebug PHP extension     pecl   xdebug     3.0.3    3.0.3
 The xhprof PHP extension     pecl   xhprof     2.2.3    2.2.3
 The xml PHP extension        bundle xml        8.0.3    8.0.3
 The xmldiff PHP extension    pecl   xmldiff    1.1.3    1.1.3
 The xmlreader PHP extension  bundle xmlreader  8.0.3    8.0.3
 The xmlwriter PHP extension  bundle xmlwriter  8.0.3    8.0.3
 The xsl PHP extension        bundle xsl        8.0.3    8.0.3
 The yac PHP extension        pecl   yac        2.3.0    2.3.0
 The yaml PHP extension       pecl   yaml       2.2.1    2.2.1
 The zip PHP extension        bundle zip        1.19.2   1.19.2
 The zlib PHP extension       bundle zlib       8.0.3    8.0.3
 Total [76]

 ! [NOTE] Platform "PHP Interpreter 8.0.3" built 2021-04-01T10:47:30+00:00

Summary

Wrong static property in JSON files should be reported (and fails) unit tests

Expected behaviour

Stop unit tests with errors when wrong declaration are detected

Actual behaviour

All unit tests passed without reporting wrong declaration. (i.e: https://github.com/llaville/php-compatinfo-db/blob/3.4.2/data/reference/extension/http/2/methods.json#L243 what is not a static method)

Other information

@llaville
Copy link
Owner Author

llaville commented Apr 1, 2021

add also commit 3be5bdd (not linked in log commit to this issue)

@llaville llaville changed the title Wrong static property in JSON files did not fails unit tests Wrong static property in JSON files did not fail unit tests Apr 1, 2021
@llaville llaville closed this as completed Apr 1, 2021
llaville added a commit that referenced this issue Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant