{"action":"opened","issue":{"url":"https://api.github.com/repos/nette/tester/issues/352","repository_url":"https://api.github.com/repos/nette/tester","labels_url":"https://api.github.com/repos/nette/tester/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/nette/tester/issues/352/comments","events_url":"https://api.github.com/repos/nette/tester/issues/352/events","html_url":"https://github.com/nette/tester/issues/352","id":210439319,"number":352,"title":"Custom object exporters in Dumper","user":{"login":"JanTvrdik","id":175109,"avatar_url":"https://avatars.githubusercontent.com/u/175109?v=3","gravatar_id":"","url":"https://api.github.com/users/JanTvrdik","html_url":"https://github.com/JanTvrdik","followers_url":"https://api.github.com/users/JanTvrdik/followers","following_url":"https://api.github.com/users/JanTvrdik/following{/other_user}","gists_url":"https://api.github.com/users/JanTvrdik/gists{/gist_id}","starred_url":"https://api.github.com/users/JanTvrdik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanTvrdik/subscriptions","organizations_url":"https://api.github.com/users/JanTvrdik/orgs","repos_url":"https://api.github.com/users/JanTvrdik/repos","events_url":"https://api.github.com/users/JanTvrdik/events{/privacy}","received_events_url":"https://api.github.com/users/JanTvrdik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-27T10:10:10Z","updated_at":"2017-02-27T10:10:10Z","closed_at":null,"body":"- bug report? no\r\n- feature request? yes\r\n\r\nI'm missing functionally similar to [Tracy's Dumper $objectExporters](https://github.com/nette/tracy/blob/cdd9777066cda7be3193edc82720a75a55624a45/src/Tracy/Dumper.php#L53-L59).\r\n\r\nCurrently there is one hard-coded exporter for instances of DateTimeInterface. It would be nice to add support for custom exporters.\r\n\r\n\r\n---\r\n\r\nMotivation:\r\n\r\nI would like to see \r\n\r\n~~~\r\nFailed: [App\\Model\\MyEntity#1, App\\Model\\MyEntity#2, App\\Model\\MyEntity#3] should be\r\n     ... [App\\Model\\MyEntity#2, App\\Model\\MyEntity#3, App\\Model\\MyEntity#4] in testSomething()\r\n~~~\r\n\r\ninstead of\r\n\r\n~~~\r\nFailed: [App\\Model\\MyEntity(#017b), App\\Model\\MyEntity(#1a98), App\\Model\\MyEntity(#85c2), ...] should be\r\n     ... [App\\Model\\MyEntity(#1a98), App\\Model\\MyEntity(#85c2), App\\Model\\MyEntity(#a014)] in testSomething()\r\n~~~"}}
{"actor":{"display_login":"JanTvrdik"}}