TestCase ​
- Type
- Class
- Namespace
- craft\test
- Inherits
- craft\test\TestCase »
Codeception\Test\Unit
- Extended by
- craft\test\console\ConsoleTest
- Since
- 3.2.0
Class TestCase
Public Methods ​
Method | Description |
---|---|
_fixtures() | |
assertObjectIsInstanceOfClassCallback() | Returns a callable that checks whether the passed in object is an instance of the $class param |
_fixtures()
​
Returns ​
array[]
assertObjectIsInstanceOfClassCallback()
​
Returns a callable that checks whether the passed in object is an instance of the $class param
Arguments ​
$class
(string)
Returns ​
Protected Methods ​
Method | Description |
---|---|
getInaccessibleProperty() | Gets an inaccessible object property. |
invokeMethod() | Invokes an inaccessible method on an object |
invokeStaticMethod() | Invokes an inaccessible static method on a class |
setInaccessibleProperty() | Sets an inaccessible object property to a designated value. |
getInaccessibleProperty()
​
Gets an inaccessible object property.
Arguments ​
$object
(object, string)$propertyName
(string)$revoke
(boolean) – Whether to make property inaccessible after getting
Returns ​
mixed
Throws ​
invokeMethod()
​
Invokes an inaccessible method on an object
Arguments ​
$object
(object, string)$method
(string)$args
(array)$revoke
(boolean) – Whether to make method inaccessible after execution
Returns ​
mixed
Throws ​
invokeStaticMethod()
​
Invokes an inaccessible static method on a class
Arguments ​
$className
(object, string)$method
(string)$args
(array)$revoke
(boolean) – Whether to make method inaccessible after execution
Returns ​
mixed
Throws ​
setInaccessibleProperty()
​
Sets an inaccessible object property to a designated value.
Arguments ​
$object
(object, string)$propertyName
(string)$value
(mixed
)$revoke
(boolean) – Whether to make property inaccessible after setting