Public Member Functions | Public Attributes

Robo47_Validate_Mock Class Reference

List of all members.

Public Member Functions

 __construct ($isValid=true, array $messages=array(), array $errors=array())
 getErrors ()
 Get Errors.
 getMessages ()
 Get Messages.
 isValid ($value)
 Is Valid.

Public Attributes

 $errors = array()
 $isValid = true
 $lastValue = null
 $messages = array()

Detailed Description

Definition at line 31 of file Mock.php.

Constructor & Destructor Documentation

Robo47_Validate_Mock::__construct ( isValid = true,
array $  messages = array(),
array $  errors = array() 
boolean $isValid
array $messages
array $errors

Definition at line 61 of file Mock.php.

References $errors, $isValid, $messages, and isValid().

        $this->isValid = $isValid;
        $this->errors = $errors;
        $this->messages = $messages;

Here is the call graph for this function:

Member Function Documentation

Robo47_Validate_Mock::getErrors (  ) 

Get Errors.


Definition at line 74 of file Mock.php.

        return $this->errors;

Robo47_Validate_Mock::getMessages (  ) 

Get Messages.


Definition at line 84 of file Mock.php.

        return $this->messages;

Robo47_Validate_Mock::isValid ( value  ) 

Is Valid.

mixed $value

Definition at line 94 of file Mock.php.

Referenced by __construct().

        $this->lastValue = $value;
        return $this->isValid;

Here is the caller graph for this function:

Member Data Documentation

Robo47_Validate_Mock::$errors = array()

Definition at line 43 of file Mock.php.

Referenced by __construct().

Robo47_Validate_Mock::$isValid = true

Definition at line 38 of file Mock.php.

Referenced by __construct().

Robo47_Validate_Mock::$lastValue = null

Definition at line 53 of file Mock.php.

Robo47_Validate_Mock::$messages = array()

Definition at line 48 of file Mock.php.

Referenced by __construct().

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