FAQ
Hi Tom,
On 9 August 2014 12:35, Tom Oram wrote:

Thoughts?
Possible? Probably, yes.

I'd actually argue that it may not be a good solution: it seems to me that
if you have to resort to this kind of mocking, then someone type-hinted
against a concrete implementation, which is a smell. Shouldn't that be
fixed instead?

What particular use-case denies using an interface or abstract type instead?

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 10 | next ›
Discussion Overview
groupphp-internals @
categoriesphp
postedAug 9, '14 at 10:35a
activeAug 13, '14 at 9:27a
posts10
users7
websitephp.net

People

Translate

site design / logo © 2019 Grokbase