Re: Class Posing

From: Date: Wed, 03 Oct 2007 05:22:07 +0000
Subject: Re: Class Posing
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-32581@lists.php.net to get a copy of this message
Jared Williams schrieb: > I think they end up using the dependency injection pattern. Of course you can argue that the code was badly {designed|written} in the example I showed and should be refactored before testing. More often than not, though, you cannot do this (3rd party code, for example) and then you cannot use mock objects without class posing. -- Sebastian Bergmann http://sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

« previous php.internals (#32581) next »