issues Search Results · repo:phpstan/phpstan-phpunit language:PHP
Filter by
104 results
(95 ms)104 results
inphpstan/phpstan-phpunit (press backspace or delete to remove)assertStringStartsWith after assertNotEmpty fails with error Parameter #1 $prefix of method
PHPUnit\Framework\Assert::assertStringStartsWith() expects non-empty-string , while the string cannot be empty ...
gisostallenberg
- 2
- Opened 11 days ago
- #231
Continuation of #214
What if we introduce optional path parameter to phpunit.xml in the same manner as containerXmlPath in
phpstan/phpstan-symfony package? Then we can analyse suffix option for each directory ...
aivchen
- 2
- Opened 18 days ago
- #230
- phpstan/phpstan v2.1.13
- phpstan/phpstan-phpunit v2.0.6
Given the following trait:
trait MockServerTrait
{
private static ?MockWebServer\MockWebServer $mockServer = null;
protected static ...
eliashaeussler
- Opened on Apr 29
- #229
We are getting:
Trying to mock an undefined method addCacheTags() on class TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController
PHP: 8.4 phpunit: 10.5.45 phpstan: 2.1.11 phpstan-phpunit: 2.0.5 ...
liayn
- 9
- Opened on Mar 26
- #227
See https://github.com/sebastianbergmann/phpunit/issues/6156#issuecomment-2737052832
In 12.0.9 PHPUnit removed the InvocationMocker classes, the PR is
https://github.com/sebastianbergmann/phpunit/commit/fb4df5388b1e29bbb954bc6065a40ad91affd750 ...
VincentLanglet
- 12
- Opened on Mar 19
- #222
Hello, I have added a test directory (tests/acceptance/) to the analysis which was previously excluded and PHPStan does
now fail with an internal error sometimes. The strange thing here is that every time ...
christianlerch
- 3
- Opened on Dec 13, 2024
- #218
Generally speaking PHPUnit looks for tests in files named *Test.php, which conventionally means the classes should be
named *Test. Additionally I believe it is recommended/required (I cannot find docs ...
cs278
- 8
- Opened on Nov 26, 2024
- #214
Hey there :wave:
I recently found that, the assertion \PHPUnit\Framework\Assert::assertIsList is not handled correctly. The variable has
the following type after this check Dumped type: array int, string ...
mitelg
- 5
- Opened on Nov 12, 2024
- #212
Feature request
we should error about dataProvider annotations without a corresponding method
https://phpstan.org/r/9870d218-28c5-4636-88e9-85f73ce78bc9
Did PHPStan help you today? Did it make you happy ...
staabm
- 5
- Opened on Oct 3, 2024
- #211
Feature request
Hi !
In order to enforce and clarify the usage of test doubles for everyone, I would like to know if you think it would be
beneficial to implement a rule that raises an error when a mock ...
ChinaskiJr
- 3
- Opened on Sep 24, 2024
- #210

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.