ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ComponentMock Class Reference
+ Collaboration diagram for ComponentMock:

Public Member Functions

 _checkArg ($which, $check, $message)
 
 _checkIntArg ($which, $value)
 
 _checkStringArg ($which, $value)
 
 _checkFloatArg ($which, $value)
 
 _checkBoolArg ($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 11 of file ComponentHelperTest.php.

Member Function Documentation

◆ _checkArg()

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

Definition at line 15 of file ComponentHelperTest.php.

16 {
17 $this->checkArg($which, $check, $message);
18 }
checkArg($which, $check, $message)
/** Throw an InvalidArgumentException containing the message if $check is false.
$message
Definition: xapiexit.php:14

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 35 of file ComponentHelperTest.php.

36 {
37 $this->checkArgInstanceOf($which, $value, $class);
38 }
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 39 of file ComponentHelperTest.php.

40 {
41 $this->checkArgIsElement($which, $value, $array, $name);
42 }
if($format !==null) $name
Definition: metadata.php:230
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 51 of file ComponentHelperTest.php.

52 {
53 $this->checkArgList($which, $value, $check, $message);
54 }
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 47 of file ComponentHelperTest.php.

48 {
49 $this->checkArgListElements($which, $value, $classes);
50 }
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:

◆ _checkBoolArg()

ComponentMock::_checkBoolArg (   $which,
  $value 
)

Definition at line 31 of file ComponentHelperTest.php.

32 {
33 $this->checkBoolArg($which, $value);
34 }
checkBoolArg($which, $value)
Throw an InvalidArgumentException if $value is not a bool.

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

+ Here is the call graph for this function:

◆ _checkFloatArg()

ComponentMock::_checkFloatArg (   $which,
  $value 
)

Definition at line 27 of file ComponentHelperTest.php.

28 {
29 $this->checkFloatArg($which, $value);
30 }
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 19 of file ComponentHelperTest.php.

20 {
21 $this->checkIntArg($which, $value);
22 }
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 23 of file ComponentHelperTest.php.

24 {
25 $this->checkStringArg($which, $value);
26 }
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 43 of file ComponentHelperTest.php.

44 {
45 return $this->toArray($value);
46 }
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 57 of file ComponentHelperTest.php.

58 {
59 $this->called_gcnbfqn++;
60 return "Foo";
61 }

Field Documentation

◆ $called_gcnbfqn

ComponentMock::$called_gcnbfqn = 0

Definition at line 56 of file ComponentHelperTest.php.


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