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

Class constants not well detected #109

Closed
1 of 4 tasks
llaville opened this issue Jan 19, 2022 · 0 comments
Closed
1 of 4 tasks

Class constants not well detected #109

llaville opened this issue Jan 19, 2022 · 0 comments
Assignees
Labels

Comments

@llaville
Copy link
Owner

llaville commented Jan 19, 2022

Bug report category

  • Installation issue.
  • Feature issue.
  • PHP extension related issue.
  • Other. Please specify in Summary section

OS

1. Host operating system and version: Linux php 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 GNU/Linux

2. PHP version: 8.0.14

3. PHP CompatInfoDB version: Database handler for CompatInfo version dev-master@0e34082

Summary

While exploring changes came with PHP 8.0, I noticed that ReflectionClassConstants are not detected

Expected behaviour

Unit tests should failed, because new ReflectionClassConstant are not yet defined in database

Actual behaviour

devilbox@php-8.0.14 in /shared/backups/bartlett/php-compatinfo-db $ phpunit --testsuite reflection --debug
PHPUnit 9.5.10 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.0.14
Configuration: /shared/backups/bartlett/php-compatinfo-db/phpunit.xml.dist
Warning:       Your XML configuration validates against a deprecated schema.
Suggestion:    Migrate your XML configuration using "--migrate-configuration"!

Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetIniEntriesFromReference' started
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetIniEntriesFromReference' ended
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetIniEntriesFromExtension' started
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetIniEntriesFromExtension' ended
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetFunctionsFromReference' started
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetFunctionsFromReference' ended
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetFunctionsFromExtension' started
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetFunctionsFromExtension' ended
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetConstantsFromReference' started
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetConstantsFromReference' ended
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetConstantsFromExtension' started
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetConstantsFromExtension' ended
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetClassesFromReference' started
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetClassesFromReference' ended
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetClassesFromExtension' started
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetClassesFromExtension' ended
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetMethodsFromReference' started
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetMethodsFromReference' ended
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetMethodsFromExtension' started
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetMethodsFromExtension' ended
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetClassConstantsFromExtension' started
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetClassConstantsFromExtension' ended
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetInterfacesFromReference' started
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetInterfacesFromReference' ended
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetInterfacesFromExtension' started
Test 'Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Reflection\ReflectionExtensionTest::testGetInterfacesFromExtension' ended


Time: 00:00.157, Memory: 32.00 MB

OK (13 tests, 619 assertions)
@llaville llaville added the bug label Jan 19, 2022
@llaville llaville self-assigned this Jan 19, 2022
@llaville llaville changed the title Class constants not detected Class constants not well detected Jan 19, 2022
llaville added a commit that referenced this issue Jan 19, 2022
llaville added a commit that referenced this issue Jan 20, 2022
…from other extension; i.e: phar class and spl iterators)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant