Method |
Description |
|
basePath ( ) : string |
Return project root. |
|
callProtectedMethod ( object | string $objectOrClass, string $method, mixed[] $args = [] ) : mixed |
Call protected method on a given object via reflection. |
|
createCallableMock ( ) : callable | PHPUnit_Framework_MockObject_MockObject |
Creates a callable mock. |
|
createLoopMock ( ) : Kraken\Loop\LoopInterface | PHPUnit_Framework_MockObject_MockObject |
|
|
createReadableLoopMock ( ) : Kraken\Loop\LoopInterface | PHPUnit_Framework_MockObject_MockObject |
|
|
createWritableLoopMock ( ) : Kraken\Loop\LoopInterface | PHPUnit_Framework_MockObject_MockObject |
|
|
existsProtectedProperty ( object $object, string $property ) : boolean |
Check if protected property exists. |
|
expectCallableExactly ( $amount ) : callable | PHPUnit_Framework_MockObject_MockObject |
Creates a callback that must be called $amount times or the test will fail. |
|
expectCallableNever ( ) : callable | PHPUnit_Framework_MockObject_MockObject |
Creates a callable that must not be called once. |
|
expectCallableOnce ( ) : callable | PHPUnit_Framework_MockObject_MockObject |
Creates a callback that must be called once. |
|
expectCallableTwice ( ) : callable | PHPUnit_Framework_MockObject_MockObject |
Creates a callback that must be called twice. |
|
getProtectedProperty ( object $object, string $property ) : mixed |
Get protected property from given object via reflection. |
|
getTest ( ) : TUnit |
|
|
setProtectedProperty ( object $object, string $property, mixed $value ) : object |
Set protected property on a given object via reflection. |
|
twice ( ) : PHPUnit_Framework_MockObject_Matcher_InvokedCount |
|
|