Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

Robo47_Mock Class Reference

List of all members.

Public Member Functions

 __call ($name, $arguments)
 __call
 __construct ()
 Constructor.
 __get ($name)
 __get
 __set ($name, $value)
 __set

Public Attributes

 $mockData

Protected Member Functions

 _logCall ($name, $arguments)
 _logCall
 _logGet ($name)
 __logGet
 _logSet ($name, $value)
 _logSet

Protected Attributes

 $_data = array()

Detailed Description

Definition at line 34 of file Mock.php.


Constructor & Destructor Documentation

Robo47_Mock::__construct (  ) 

Constructor.

Definition at line 53 of file Mock.php.

References _logCall().

    {
        $args = func_get_args();
        $this->_logCall('__construct', $args);
    }

Here is the call graph for this function:


Member Function Documentation

Robo47_Mock::__call ( name,
arguments 
)

__call

Parameters:
string $name
array $arguments

Definition at line 65 of file Mock.php.

References _logCall().

    {
        $this->_logCall($name, $arguments);
    }

Here is the call graph for this function:

Robo47_Mock::__get ( name  ) 

__get

Parameters:
string $name
Returns:
mixed

Definition at line 120 of file Mock.php.

References _logGet().

    {
        $this->_logGet($name);
        if (isset($this->_data[$name])) {
            return $this->_data[$name];
        }
        return null;
    }

Here is the call graph for this function:

Robo47_Mock::__set ( name,
value 
)

__set

Parameters:
string $name
mixed $value

Definition at line 108 of file Mock.php.

References _logSet().

    {
        $this->_data[$name] = $value;
        $this->_logSet($name, $value);
    }

Here is the call graph for this function:

Robo47_Mock::_logCall ( name,
arguments 
) [protected]

_logCall

Parameters:
string $name
array $arguments

Definition at line 76 of file Mock.php.

Referenced by __call(), and __construct().

    {
        $this->mockData['call'][] = array($name, $arguments);
    }

Here is the caller graph for this function:

Robo47_Mock::_logGet ( name  )  [protected]

__logGet

Parameters:
string $name

Definition at line 86 of file Mock.php.

Referenced by __get().

    {
        $this->mockData['get'][] = $name;
    }

Here is the caller graph for this function:

Robo47_Mock::_logSet ( name,
value 
) [protected]

_logSet

Parameters:
string $name
mixed $value

Definition at line 97 of file Mock.php.

Referenced by __set().

    {
        $this->mockData['set'][] = array($name, $value);
    }

Here is the caller graph for this function:


Member Data Documentation

Robo47_Mock::$_data = array() [protected]

Definition at line 40 of file Mock.php.

Robo47_Mock::$mockData
Initial value:
 array(
        'call' => array(),
        'get' => array(),
        'set' => array(),
    )

Definition at line 44 of file Mock.php.


The documentation for this class was generated from the following file: