Exemple #1
0
 public function testMacro()
 {
     new _Aop();
     $this->object(_Aop::macro('calc', function ($n) {
         return 2 + $n;
     }))->integer(_Aop::calc(8))->isEqualTo(10);
 }