phpstan-phpunit

PHPUnit extensions and rules for PHPStan

MIT License

Downloads
58.3M
Stars
436
Committers
31

Bot releases are hidden (Show)

phpstan-phpunit - 0.12.16

Published by ondrejmirtes almost 4 years ago

phpstan-phpunit - 0.11.2

Published by ondrejmirtes over 5 years ago

  • Include rules.neon for phpstan/extension-installer (fbf2ad56c3b13189d29655e226c9b1da47c2fad9)
phpstan-phpunit - 0.11.1

Published by ondrejmirtes over 5 years ago

  • Extension installer support (#45), thanks @lookyman!
  • Fix detection of unspecific assert*() with direct Assert::assert*() calls (#47), thanks @Majkl578!
phpstan-phpunit - 0.10

Published by ondrejmirtes over 6 years ago

  • Removed strictRules.neon (everything is in rules.neon now)
  • Type-specifying extension for various PHPUnit's assert* methods
  • Composer: Replaced some requirements with conflicts - #19, thanks @lookyman!
phpstan-phpunit - 0.9.4

Published by ondrejmirtes over 6 years ago

Support PHPUnit 7.0

phpstan-phpunit - 0.9.3

Published by ondrejmirtes almost 7 years ago

Added strict rules for more precise TestCase assert calls (enabled separately by including strictRules.neon) - #5, thanks @mhujer!

  • Check that you are not using assertSame() with true as expected value. assertTrue() should be used instead.
  • Check that you are not using assertSame() with false as expected value. assertFalse() should be used instead.
  • Check that you are not using assertSame() with null as expected value. assertNull() should be used instead.
  • Check that you are not using assertSame() with count($variable) as second parameter. assertCount($variable) should be used instead.
phpstan-phpunit - 0.9.2

Published by ondrejmirtes almost 7 years ago

Add missing methods that generate mocks - #2, thanks @lcobucci!

phpstan-phpunit - 0.9.1

Published by ondrejmirtes almost 7 years ago

Supports new names for MockBuilder and MockObject introduced in PHPUnit 6.5.

phpstan-phpunit - 0.9

Published by ondrejmirtes almost 7 years ago

Initial release.