mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
getQueryResult #5250
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DonCallisto on GitHub (Sep 12, 2016).
Why don't add the following API to
QueryBuilder?That way Law of Demeter is not broken and is easier to write tests mocking
QueryBuilder.Other way I need to create a mock of
Query(and, perhaps, it's not possibile with Prophecy asQueryis final) so it force me to "dig" into collaborator structure.Any thoughts?
@guilherme90 commented on GitHub (Jun 13, 2017):
Yes, I'm having the same problem with mock the
Queryobject (it is not possible to create fake objects with final signature). And when I do this withAbstractQuery, it gives a constructor error.How can we solve this?
@Ocramius commented on GitHub (Jun 13, 2017):
Please don't mock the QueryBuilder or Query objects: use real instances
there.
On 14 Jun 2017 02:30, "Guilherme Nogueira" notifications@github.com wrote:
@guilherme90 commented on GitHub (Jun 13, 2017):
Okay thanks.