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.

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

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

+ Here is the call graph for this function:

◆ _checkArgInstanceOf()

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

Definition at line 29 of file ComponentHelperTest.php.

30 {
31 $this->checkArgInstanceOf($which, $value, $class);
32 }
checkArgInstanceOf($which, $value, $class)
Throw an InvalidArgumentException if $value is not an instance of $class.

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

+ Here is the call graph for this function:

◆ _checkArgIsElement()

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

Definition at line 33 of file ComponentHelperTest.php.

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

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

+ Here is the call graph for this function:

◆ _checkArgList()

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

Definition at line 45 of file ComponentHelperTest.php.

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.

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

+ Here is the call graph for this function:

◆ _checkArgListElements()

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

Definition at line 41 of file ComponentHelperTest.php.

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.

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

+ Here is the call graph for this function:

◆ _checkFloatArg()

ComponentMock::_checkFloatArg (   $which,
  $value 
)

Definition at line 25 of file ComponentHelperTest.php.

26 {
27 $this->checkFloatArg($which, $value);
28 }
checkFloatArg($which, $value)
Throw an InvalidArgumentException if $value is not a float.

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

+ Here is the call graph for this function:

◆ _checkIntArg()

ComponentMock::_checkIntArg (   $which,
  $value 
)

Definition at line 17 of file ComponentHelperTest.php.

18 {
19 $this->checkIntArg($which, $value);
20 }
checkIntArg($which, $value)
Throw an InvalidArgumentException if $value is no int.

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

+ Here is the call graph for this function:

◆ _checkStringArg()

ComponentMock::_checkStringArg (   $which,
  $value 
)

Definition at line 21 of file ComponentHelperTest.php.

22 {
23 $this->checkStringArg($which, $value);
24 }
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.

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

+ Here is the call graph for this function:

◆ _toArray()

ComponentMock::_toArray (   $value)

Definition at line 37 of file ComponentHelperTest.php.

38 {
39 return $this->toArray($value);
40 }
toArray($value)
Wrap the given value in an array if it is no array.

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

+ 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: