Skip to content

Releases: Codeception/AspectMock

0.4.1

25 Feb 02:46
Compare
Choose a tag to compare

Traits support and other Pull Requests merged. Robo builder added

0.4.1

02/25/2014

  • RoboFile
  • Verify invocation arguments with closures @gchaincl
  • Verify invocation arguments with closures by @gchaincl
  • better support for traits by @andyfowler

Performance and Debug improvements

09 Sep 01:15
Compare
Choose a tag to compare

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

27 Aug 22:50
Compare
Choose a tag to compare

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