Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

smpn2/phpunit-6156

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reproduction testcase for issue sebastianbergmann/phpunit#6156

Running PHPStan with composer analyze will yield the following error:

------ ---------------------------------------------------------------------------------------------------- 
  Line   test\MyServiceTest.php
 ------ ----------------------------------------------------------------------------------------------------
  :16    Call to method method() on an unknown class PHPUnit\Framework\MockObject\Builder\InvocationMocker.
         🪪  class.notFound
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
 ------ ----------------------------------------------------------------------------------------------------

Running the sam analysis with PHPUnit 12.0.8 do work as expected:

composer require --dev --with-all-dependencies phpunit/phpunit:12.0.8
composer analyze


 [OK] No errors

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PHP 100.0%