Skip to content
This repository has been archived by the owner on Apr 11, 2022. It is now read-only.

Helper proxy

Vadim Justus edited this page Jun 26, 2014 · 2 revisions

TechDivision_MagentoUnitTesting_Helper_Proxy

An instance of that class dispatches all method invocations to the origin mock object it was build for. With the following methods it is possible to manipulate/extend the method invocation. You can add callbacks which should run before or after the original method. You can also disable the calling of the original method.

Public methods

/**
 * @param string $name
 *
 * @return TechDivision_MagentoUnitTesting_Helper_Proxy
 */
public function disableMethod($name) {}

/**
 * @param string $name
 * @param mixed  $callback
 *
 * @return TechDivision_MagentoUnitTesting_Helper_Proxy
 */
public function addBefore($name, $callback) {}

/**
 * @param string $name
 * @param mixed  $callback
 *
 * @return TechDivision_MagentoUnitTesting_Helper_Proxy
 */
public function addAfter($name, $callback) {}

/**
 * @return PHPUnit_Framework_MockObject_MockObject
 */
public function getObject() {}