Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Add ->toBeOfType<<<__Enforceable>> reify T>() as an alternative ->toHaveType() #37

Open
lexidor opened this issue Jul 2, 2021 · 0 comments · May be fixed by #44
Open

Add ->toBeOfType<<<__Enforceable>> reify T>() as an alternative ->toHaveType() #37

lexidor opened this issue Jul 2, 2021 · 0 comments · May be fixed by #44
Assignees

Comments

@lexidor
Copy link
Contributor

lexidor commented Jul 2, 2021

->toHaveType() takes magic strings like numeric. This can not be supported as a reified generic, so it is not a replacement perse. This would subsume ->toBeInstanceOf(), but again, it is not meant as a replacement. instanceof is a relic from PHP so having a function with a less legacy sounding name for new tests can't be a bad thing.

Ergonomics, return T when done, for local refinement in the test.

@lexidor lexidor self-assigned this Jul 2, 2021
@lexidor lexidor linked a pull request May 29, 2023 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant