Releases: Codeception/AspectMock
Releases · Codeception/AspectMock
0.4.1
Performance and Debug improvements
A huge improvement to stability, performance added. Level of hard magic reduced.
AspectMock dropped Go Aop proxy classes, and now tries to affect your code in very minimal way.
Instead of creating A_AspectProxy
for class A
(as Go Aop does), AspectMock places its tiny beacons directly into A
methods, in very beginning of method definition.
Changes:
- you can freely use debugger, as your classes left practically unchanged.
- stacktrace look much more cleaner and more natural.
- performance dramatically improved. Still, AOP magic takes about 15% of overall execution.
- remved MethodProxy class. You can't verify result of method calls anymore.
test::ns
method added to api, for prepending a namespace name to class.debug
is enabled by default
Magic methods and parent methods
This version adds flexibility to method interception. Now you can catch call to a parent class and redeclare it. Also you can mock magic methods just same way you do for non-magic ones. No matter how an where method is declared, we will try to catch it and mock it if you wish that, master.
- updated to Go Aop 0.4.1 (improved work with Yii)
- interception of parent class methods
- interception of magic methods