- $trxProfiler->setExpectations( $trxLimits['POST'], __METHOD__ );
- DeferredUpdates::addCallableUpdate( function () use ( $trxProfiler, $trxLimits ) {
- $trxProfiler->setExpectations( $trxLimits['PostSend-POST'], __METHOD__ );
+ $trxProfiler->redefineExpectations( $trxLimits['POST'], $fname );
+ DeferredUpdates::addCallableUpdate( function () use ( $trxProfiler, $trxLimits, $fname ) {
+ $trxProfiler->redefineExpectations( $trxLimits['PostSend-POST'], $fname );