Method | Description | |
---|---|---|
assertCancelled ( ) : |
Assert that this node is in state cancel after run(). | |
assertComplete ( ) : |
Assert that this node is in state complete after run(). | |
assertMaxInputAttemptsReached ( ) : |
Assert that this node is in state of max input attempts reached after run(). | |
assertSayDateTime ( $time, $format, integer $totalTimes ) : |
Configures this node to expect the given datetime to be played n number of times with the given format. | |
assertSayDigits ( integer $digits, integer $totalTimes ) : |
Configures this node to expect the given digits to be played n number of times. | |
assertSayNumber ( $number, integer $totalTimes ) : |
Configures this node to expect the given number to be played n number of times. | |
assertSaySound ( string $filename, integer $totalTimes ) : |
Configures this node to expect a given filename to be played n number of times. | |
doBeforeFailedInput ( Closure $callback ) : |
Execute a callback before invoking the real callback for failed input. | |
doBeforeValidInput ( Closure $callback ) : |
Execute a callback before invoking the real callback for valid input. | |
run ( ) | (non-PHPdoc) | |
runWithInput ( string $digits ) : |
Configure this node to mimic these digits as user input. |
Method | Description | |
---|---|---|
assertSay ( string $what, integer $totalTimes, string[] $arguments = [] ) : |
Generic method to expect prompt messages played. | |
beforeOnInputFailed ( ) | (non-PHPdoc) | |
beforeOnValidInput ( ) | (non-PHPdoc) | |
callClientMethods ( $methods, $stopWhen = null ) | (non-PHPdoc) | |
recordDoneSay ( string $what, string[] $arguments = [] ) : void | Records a played prompt message with its arguments. | |
sayInterruptable ( string $what, array $arguments ) : void | Used to mimic the user input per prompt message. |
public assertCancelled ( ) : |
||
return |
public assertComplete ( ) : |
||
return |
public assertMaxInputAttemptsReached ( ) : |
||
return |
public assertSayDateTime ( $time, $format, integer $totalTimes ) : |
||
$totalTimes | integer | |
return |
public assertSayDigits ( integer $digits, integer $totalTimes ) : |
||
$digits | integer | |
$totalTimes | integer | |
return |
public assertSayNumber ( $number, integer $totalTimes ) : |
||
$totalTimes | integer | |
return |
public assertSaySound ( string $filename, integer $totalTimes ) : |
||
$filename | string | |
$totalTimes | integer | |
return |
protected callClientMethods ( $methods, $stopWhen = null ) |
public doBeforeFailedInput ( Closure $callback ) : |
||
$callback | Closure | |
return |
public doBeforeValidInput ( Closure $callback ) : |
||
$callback | Closure | |
return |
protected recordDoneSay ( string $what, string[] $arguments = [] ) : void | ||
$what | string | The pagi method name called. |
$arguments | string[] | The arguments used, without the interrupt digits. |
return | void |
public runWithInput ( string $digits ) : |
||
$digits | string | |
return |