Skip to content

Custom object exporters in Dumper #352

Description

@JanTvrdik
  • 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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions