Open GoogleCodeExporter opened 9 years ago
see this discussion
http://tech.groups.yahoo.com/group/flexcoders/message/90890
Original comment by zwetan
on 1 Nov 2008 at 3:19
one thing we can explore is to use dynamic class + Proxy
and adding to the class prototype
ex:
public class Mock extends Proxy
....
public function generateFrom( any:Class ):*
....
in generateFrom we could try to do
var obj:* = new Mock( new any() );
obj.prototype = new any();
otherwise that would be bytearray manipulation
to copy the type when doing the mock
Original comment by zwetan
on 1 Nov 2008 at 3:22
more ref
http://www.brianlegros.com/blog/2008/10/25/mock-objects-and-as3-now-i-really-don
t-want-to-use-explicit-typing/
http://thefoundry.anywebcam.com/index.php/actionscript/mock-as3-released-a-mock-
object-library-for-actionscript-3/
for the mock-as3 project the choice is simple
does it do everything we want for mocking or not,
if not we go into our own implementation
Original comment by zwetan
on 1 Nov 2008 at 3:24
Original issue reported on code.google.com by
zwetan
on 1 Nov 2008 at 3:18