Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom object exporters in Dumper #352

Open
JanTvrdik opened this issue Feb 27, 2017 · 0 comments
Open

Custom object exporters in Dumper #352

JanTvrdik opened this issue Feb 27, 2017 · 0 comments

Comments

@JanTvrdik
Copy link
Contributor

JanTvrdik commented Feb 27, 2017

  • bug report? no
  • feature request? yes

I'm missing functionally similar to Tracy's Dumper $objectExporters.

Currently there is one hard-coded exporter for instances of DateTimeInterface. It would be nice to add support for custom exporters.


Motivation:

I would like to see

Failed: [App\Model\MyEntity#1, App\Model\MyEntity#2, App\Model\MyEntity#3] should be
    ... [App\Model\MyEntity#2, App\Model\MyEntity#3, App\Model\MyEntity#4] in testSomething()

instead of

Failed: [App\Model\MyEntity(#017b), App\Model\MyEntity(#1a98), App\Model\MyEntity(#85c2), ...] should be
    ... [App\Model\MyEntity(#1a98), App\Model\MyEntity(#85c2), App\Model\MyEntity(#a014)] in testSomething()
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

No branches or pull requests

1 participant