Repository navigation
Update dependency psalm/plugin-phpunit to v1 - #32
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
| datasource | package | from | to | | ---------- | -------------------- | ------ | ----- | | packagist | psalm/plugin-phpunit | 0.19.7 | 1.0.0 | Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Contributor
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.19.5→^1.0.0Release Notes
psalm/psalm-plugin-phpunit (psalm/plugin-phpunit)
v1.1.0Compare Source
Psalter now fixes
UnspecificNullAssertion,UnspecificBooleanAssertionandUnspecificEqualsAssertion:Add
--dry-runto preview the changes as a diff without writing them.This release requires Psalm 7.3 or newer (
psalm/psalm-plugin-api ^0.4.2); Psalm 7.2 keeps resolving 1.0.0.What's Changed
Full Changelog: psalm/psalm-plugin-phpunit@1.0.0...1.1.0
v1.0.0Compare Source
Upgrading from 0.2X
@test,@dataProvider,@coversand the other tags are reported asIgnoredDocblockMetadata, which names the attribute to use (#[Test],#[DataProvider],#[CoversClass], ...). They no longer make a method a test or a data provider.InvalidNamedArgument,TooFewArguments);: iterable,: array,: \Generator) have their datasets checked against the type Psalm infers from the provider's body. Where that is not possible they are reported asMixedReturnStatement, asking for a@returntype.UnspecificEqualsAssertion,UnspecificNullAssertion,UnspecificBooleanAssertionandUnspecificCountAssertion(errorLevel="1"only) suggestassertSame()overassertEquals()for two values of one scalar type, andassertNull(),assertTrue()/assertFalse()andassertCount()overassertSame();MissingParentCallreportssetUp(),tearDown()and the other hook overrides that never callparent::;InvalidPhpUnitAnnotationreports docblock tags that PHPUnit drops (/** @dataProvider*/,@group(slow));UndefinedClass,UndefinedMethodandUndefinedFunctionreport missing#[Covers*]/@coverstargets and->method('typo')on mocks.UnspecificEqualsAssertioncan be numerous in older test suites. Rector'sAssertEqualsToSameRectorfixes it, or it can be turned off:What's Changed
Details
Requirements
New checks
assertNull(),assertTrue()/assertFalse()andassertCount()overassertSame()(#198)assertSame()overassertEquals()for two values of one scalar type (#208)assertTrue()/assertFalse()overassertEquals(true|false, ...)(#233)createMockForIntersectionOfInterfaces()andcreateStubForIntersectionOfInterfaces()(#207)#[DataProviderExternal](#211)->method('...')on mocks (#212)->method('...')on unions of mocks (#231)setUp()andtearDown()overrides that don't call the parent (#215)assertPreConditions()andassertPostConditions()overrides that don't call the parent (#229)#[Covers*]and@coverstargets exist (#224)#[DataProviderClosure]providers (#242)@returntype (#275)prophesize()withoutProphecyTrait(#258)#[DataProvider('Other::method')]as an undefined provider, like PHPUnit (#235)@psalm-suppressfor data provider and dataset issues (#257)Fixes
@psalmtag (#232)setUp()and#[Before]from traits forMissingConstructor(#260)iterable<V>orGenerator<V>(#262)TooFewArgumentsforlist<T>datasets (#264)ArgumentTypeCoercion(#265)mixeddataset values asMixedArgument(#271)InvalidArgumentfor test parameters typed with the method's own templates (#270)MixedArgumentTypeCoercionfor closure parameters typed with the method's own templates (#277)Development
assertSame()in external provider fixtures (#230)TestCase.featureinto one feature file per area (#243)Contextinstead of copying it into every scenario (#254)Full Changelog: psalm/psalm-plugin-phpunit@0.22.2...1.0.0
v0.22.2Compare Source
First release from the
0.22.xmaintenance branch (Psalm 6 and PHP 8.1). Psalm 7 support starts at 7.2, the first Psalm 7 that accepts this plugin version.What's Changed
Full Changelog: psalm/psalm-plugin-phpunit@0.22.1...0.22.2
v0.22.1Compare Source
Supports Psalm 6 again (alongside Psalm 7). 0.22.x is the last release line with Psalm 6 support.
What's Changed
Full Changelog: psalm/psalm-plugin-phpunit@0.22.0...0.22.1
v0.22.0Compare Source
Highlights
InvalidDataProviderissue for data providers that aren'tpublic static. PHPUnit 11 and later reject them at runtime, and PHPUnit 10.5 deprecates them.checkForThrowsDocblock: PHPUnit's own exceptions (failed assertions, mock builder errors) no longer need@throws. Neither do calls afterexpectException().assertNotEmpty():?CustomerbecomesCustomer,list<int>|nullbecomesnon-empty-list<int>.expectException(), provider issues are reported on the right line,@dependsvalues count in provider checks, and magic method calls onObjectProphecyare allowed.What's Changed
ObjectProphecyby @alies-dev in #171@dependsvalues in data provider checks by @alies-dev in #191checkForThrowsDocblockby @alies-dev in #194assertNotEmpty()by @alies-dev in #196Full Changelog: psalm/psalm-plugin-phpunit@0.21.1...0.22.0
v0.21.1Compare Source
What's Changed
Full Changelog: psalm/psalm-plugin-phpunit@0.21.0...0.21.1
v0.21.0Compare Source
Supports Psalm 7 and psalm/psalm-plugin-api ^0.4.
v0.20.4Compare Source
Bump plugin API to include ^0.3.
Full Changelog: psalm/psalm-plugin-phpunit@0.20.3...0.20.4
v0.20.3Compare Source
Bumps the plugin api to include ^0.2.
Full Changelog: psalm/psalm-plugin-phpunit@0.20.2...0.20.3
v0.20.2Compare Source
What's Changed
New Contributors
Full Changelog: psalm/psalm-plugin-phpunit@0.20.1...0.20.2
v0.20.1Compare Source
v0.20.0Compare Source
What's Changed
Full Changelog: psalm/psalm-plugin-phpunit@0.19.5...0.20.0
Configuration
📅 Schedule: (in timezone UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
Read more information about the use of Renovate Bot within Laminas.