Better enum support in @testdox
#5097
Labels
feature/data-provider
Data Providers
feature/testdox
The TextDox printer/formatter
type/enhancement
A new idea that should be implemented
While its more and more common to use native PHP enums in data providers, it would be nice if the
@testdox
annotation not just print the class, but the value.Lets use the following example:
with the following enum:
Right now the output of the
@testdox
annotation is:Color by string "red" is App\Enum\Color
in case of a
\BackedEnum
, the following output would be more helpful:I am willing to provide a PR if you can point me in the right direction
cc @localheinz as we talked about this already
The text was updated successfully, but these errors were encountered: