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

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

@lexidor

Description

@lexidor

->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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions