RandomCommandTest
extends TestCase
in package
Uses
WithConsecutiveTrait
Unit tests for RandomCommand.
Tags
Table of Contents
- testgetArguments() : void
- Test getting arguments
- testRandomInterface() : void
- Test Random with RandomInterface
- testRandomNoInterfaceWithNoResults() : void
- Test Random (without RandomInterface)
- testRandomNoInterfaceWithResultsGreaterThanLimit() : void
- Test Random (without RandomInterface)
- testRandomNoInterfaceWithResultsLessThanLimit() : void
- Test Random (without RandomInterface)
- expectConsecutiveCalls() : InvocationStubber
- Expect consecutive calls to a mock.
Methods
testgetArguments()
Test getting arguments
public
testgetArguments() : void
Return values
void —testRandomInterface()
Test Random with RandomInterface
public
testRandomInterface() : void
Return values
void —testRandomNoInterfaceWithNoResults()
Test Random (without RandomInterface)
public
testRandomNoInterfaceWithNoResults() : void
Return values
void —testRandomNoInterfaceWithResultsGreaterThanLimit()
Test Random (without RandomInterface)
public
testRandomNoInterfaceWithResultsGreaterThanLimit() : void
Return values
void —testRandomNoInterfaceWithResultsLessThanLimit()
Test Random (without RandomInterface)
public
testRandomNoInterfaceWithResultsLessThanLimit() : void
Return values
void —expectConsecutiveCalls()
Expect consecutive calls to a mock.
protected
expectConsecutiveCalls(MockObject $mock, string $method, array<string|int, mixed> $expectedCalls[, mixed $returnValues = null ]) : InvocationStubber
Parameters
- $mock : MockObject
-
Mock object
- $method : string
-
Method expecting calls
- $expectedCalls : array<string|int, mixed>
-
Expected input parameters
- $returnValues : mixed = null
-
Return values to mock (either an array indexed parallel to $expectedCalls to return different values, or a single value to always return the same thing)