TOCTest
extends TestCase
in package
Uses
WithConsecutiveTrait
TOC Test Class
Tags
Table of Contents
- isActiveProvider() : array<string|int, mixed>
- Data provider for testIsActive.
- testGetDescription() : void
- Test getting Description.
- testIsActive() : void
- Test if the tab is active.
- expectConsecutiveCalls() : InvocationStubber
- Expect consecutive calls to a mock.
Methods
isActiveProvider()
Data provider for testIsActive.
public
static isActiveProvider() : array<string|int, mixed>
Return values
array<string|int, mixed> —testGetDescription()
Test getting Description.
public
testGetDescription() : void
Return values
void —testIsActive()
Test if the tab is active.
public
testIsActive(string $toc, bool $expectedResult) : void
Parameters
- $toc : string
-
TOC from record driver
- $expectedResult : bool
-
Expected return value from isActive
Tags
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)