ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ComponentMock Class Reference
+ Collaboration diagram for ComponentMock:

Public Member Functions

 _checkArg ($which, $check, $message)
 
 _checkIntArg ($which, $value)
 
 _checkStringArg ($which, $value)
 
 _checkFloatArg ($which, $value)
 
 _checkArgInstanceOf ($which, $value, $class)
 
 _checkArgIsElement ($which, $value, $array, $name)
 
 _toArray ($value)
 
 _checkArgListElements ($which, &$value, $classes)
 
 _checkArgList ($which, &$value, $check, $message)
 

Data Fields

 $called_gcnbfqn = 0
 

Protected Member Functions

 getCanonicalNameByFullyQualifiedName ()
 

Detailed Description

Definition at line 9 of file ComponentHelperTest.php.

Member Function Documentation

◆ _checkArg()

ComponentMock::_checkArg (   $which,
  $check,
  $message 
)

Definition at line 13 of file ComponentHelperTest.php.

References $message, and ILIAS\UI\Implementation\Component\checkArg().

14  {
15  $this->checkArg($which, $check, $message);
16  }
checkArg($which, $check, $message)
/** Throw an InvalidArgumentException containing the message if $check is false.
catch(Exception $e) $message
+ Here is the call graph for this function:

◆ _checkArgInstanceOf()

ComponentMock::_checkArgInstanceOf (   $which,
  $value,
  $class 
)

Definition at line 29 of file ComponentHelperTest.php.

References ILIAS\UI\Implementation\Component\checkArgInstanceOf().

30  {
31  $this->checkArgInstanceOf($which, $value, $class);
32  }
checkArgInstanceOf($which, $value, $class)
Throw an InvalidArgumentException if $value is not an instance of $class.
+ Here is the call graph for this function:

◆ _checkArgIsElement()

ComponentMock::_checkArgIsElement (   $which,
  $value,
  $array,
  $name 
)

Definition at line 33 of file ComponentHelperTest.php.

References $name, and ILIAS\UI\Implementation\Component\checkArgIsElement().

34  {
35  $this->checkArgIsElement($which, $value, $array, $name);
36  }
checkArgIsElement($which, $value, $array, $name)
Throw an InvalidArgumentException if $value is not an element of array.
if($format !==null) $name
Definition: metadata.php:146
+ Here is the call graph for this function:

◆ _checkArgList()

ComponentMock::_checkArgList (   $which,
$value,
  $check,
  $message 
)

Definition at line 45 of file ComponentHelperTest.php.

References $message, and ILIAS\UI\Implementation\Component\checkArgList().

46  {
47  $this->checkArgList($which, $value, $check, $message);
48  }
checkArgList($which, array &$values, \Closure $check, \Closure $message)
Check every key and value of the list with a supplied closure.
catch(Exception $e) $message
+ Here is the call graph for this function:

◆ _checkArgListElements()

ComponentMock::_checkArgListElements (   $which,
$value,
  $classes 
)

Definition at line 41 of file ComponentHelperTest.php.

References ILIAS\UI\Implementation\Component\checkArgListElements().

42  {
43  $this->checkArgListElements($which, $value, $classes);
44  }
checkArgListElements($which, array &$values, &$classes)
Check every element of the list if it is an instance of one of the given classes. ...
+ Here is the call graph for this function:

◆ _checkFloatArg()

ComponentMock::_checkFloatArg (   $which,
  $value 
)

Definition at line 25 of file ComponentHelperTest.php.

References ILIAS\UI\Implementation\Component\checkFloatArg().

26  {
27  $this->checkFloatArg($which, $value);
28  }
checkFloatArg($which, $value)
Throw an InvalidArgumentException if $value is not a float.
+ Here is the call graph for this function:

◆ _checkIntArg()

ComponentMock::_checkIntArg (   $which,
  $value 
)

Definition at line 17 of file ComponentHelperTest.php.

References ILIAS\UI\Implementation\Component\checkIntArg().

18  {
19  $this->checkIntArg($which, $value);
20  }
checkIntArg($which, $value)
Throw an InvalidArgumentException if $value is no int.
+ Here is the call graph for this function:

◆ _checkStringArg()

ComponentMock::_checkStringArg (   $which,
  $value 
)

Definition at line 21 of file ComponentHelperTest.php.

References ILIAS\UI\Implementation\Component\checkStringArg().

22  {
23  $this->checkStringArg($which, $value);
24  }
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
+ Here is the call graph for this function:

◆ _toArray()

ComponentMock::_toArray (   $value)

Definition at line 37 of file ComponentHelperTest.php.

References ILIAS\UI\Implementation\Component\toArray().

38  {
39  return $this->toArray($value);
40  }
toArray($value)
Wrap the given value in an array if it is no array.
+ Here is the call graph for this function:

◆ getCanonicalNameByFullyQualifiedName()

ComponentMock::getCanonicalNameByFullyQualifiedName ( )
protected

Definition at line 51 of file ComponentHelperTest.php.

52  {
53  $this->called_gcnbfqn++;
54  return "Foo";
55  }

Field Documentation

◆ $called_gcnbfqn

ComponentMock::$called_gcnbfqn = 0

Definition at line 50 of file ComponentHelperTest.php.


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