[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/toolkit/src/ -> lmbStaticTools.class.php (summary)

(no description)

File Size: 62 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

lmbStaticTools:: (3 methods):
  __construct()
  getToolsSignatures()
  __call()


Class: lmbStaticTools  - X-Ref

A special kind of tools that always returns some predefined result from each method
Created for testing purposes mostly
Example of usage:
<code>
$tools = new lmbStaticTools(array('getUser' => $mock_user, 'getDbConnection' => $mock_db_connection));
lmbToolkit :: merge($tools);
</code>

__construct($call_results)   X-Ref
Constructor

param: array Array of method results that should be returned in response to these methods calls

getToolsSignatures()   X-Ref


__call($method, $args)   X-Ref
Magic caller. Simply returns result from {@link $call_results} attribute

param: string Method name
param: array Method arguments
return: mixed



Generated: Tue Dec 2 03:54:09 2008 Cross-referenced by PHPXref 0.7