Skip to content

test(hydra): expect the resource class lookup in CollectionObjectNormalizerTest - #8611

Open
Amoifr wants to merge 1 commit into
api-platform:mainfrom
Amoifr:test-hydra-collection-normalizer-stub
Open

Amoifr wants to merge 1 commit into
api-platform:mainfrom
Amoifr:test-hydra-collection-normalizer-stub

Conversation

@Amoifr

@Amoifr Amoifr commented Sep 30, 2026

Copy link
Copy Markdown
Contributor
Q A
Branch? main
Tickets n/a
License MIT
Doc PR n/a

PHPStan (PHP 8.5) fails on main with Call to an undefined method InvocationStubber::with() in CollectionObjectNormalizerTest (line 59, added in #8539): the mock constrains its arguments with with() but has no expects(). PHPUnit 13 also reports it as a deprecation, removed in PHPUnit 14.

The test now expects the call once, so the argument check stays. The file only exists on main, hence the branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant