PHP Class MGDigital\BusQue\Features\Context\AbstractBaseContext

Inheritance: implements Behat\Behat\Context\SnippetAcceptingContext
Show file Open project: mgdigital/busque

Protected Properties

Property Type Description
$clock MGDigital\BusQue\ClockInterface
$commandBus MGDigital\BusQue\CommandBusAdapterInterface
$commandIdGenerator MGDigital\BusQue\CommandIdGeneratorInterface
$implementation MGDigital\BusQue\Implementation
$prophet Prophecy\Prophet
$queueResolver MGDigital\BusQue\QueueResolverInterface

Public Methods

Method Description
iCancel ( $arg1 )
iClearTheQueue ( )
iClearTheSchedule ( )
iDeleteTheQueue ( )
iQueueACommand ( $command )
iQueueACommandWithId ( $command, string $id )
iRunTheQueueWorker ( )
iRunTheSchedulerWorker ( )
iScheduleACommandToRunAt ( $command, $arg1, $arg2 )
iScheduleACommandWithIdToRunAt ( $command, $id, $arg1, $arg2 )
setup ( )
theCommandArgShouldHaveRun ( $arg1 )
theCommandArgShouldNotHaveRun ( $arg1 )
theCommandShouldBeQueued ( )
theCommandShouldHaveRun ( )
theCommandWillThrowAnExceptionWhenItIsHandled ( )
theCommandWithIdArgShouldBQueued ( $arg1 )
theCommandWithIdShouldBeScheduledAt ( $arg1, $arg2, $arg3 )
theCommandWithIdShouldResolveTo ( $arg1, $arg2 )
theQueueIsEmpty ( )
theQueueShouldHaveBeenDeleted ( )
theTimeIs ( $arg1, $arg2 )
thereShouldBeNCommandsInTheQueue ( integer $arg1 )

Protected Methods

Method Description
getImplementation ( ) : Implementation
queueCommand ( $command, string $id = null )
scheduleCommand ( $command, DateTimeInterface $dateTime, string $id )

Method Details

getImplementation() abstract protected method

abstract protected getImplementation ( ) : Implementation
return MGDigital\BusQue\Implementation

iCancel() public method

public iCancel ( $arg1 )

iClearTheQueue() public method

public iClearTheQueue ( )

iClearTheSchedule() public method

public iClearTheSchedule ( )

iDeleteTheQueue() public method

public iDeleteTheQueue ( )

iQueueACommand() public method

public iQueueACommand ( $command )

iQueueACommandWithId() public method

public iQueueACommandWithId ( $command, string $id )
$id string

iRunTheQueueWorker() public method

public iRunTheQueueWorker ( )

iRunTheSchedulerWorker() public method

iScheduleACommandToRunAt() public method

public iScheduleACommandToRunAt ( $command, $arg1, $arg2 )

iScheduleACommandWithIdToRunAt() public method

public iScheduleACommandWithIdToRunAt ( $command, $id, $arg1, $arg2 )

queueCommand() protected method

protected queueCommand ( $command, string $id = null )
$id string

scheduleCommand() protected method

protected scheduleCommand ( $command, DateTimeInterface $dateTime, string $id )
$dateTime DateTimeInterface
$id string

setup() public method

public setup ( )

theCommandArgShouldHaveRun() public method

public theCommandArgShouldHaveRun ( $arg1 )

theCommandArgShouldNotHaveRun() public method

theCommandShouldBeQueued() public method

theCommandShouldHaveRun() public method

theCommandWillThrowAnExceptionWhenItIsHandled() public method

theCommandWithIdArgShouldBQueued() public method

theCommandWithIdShouldBeScheduledAt() public method

public theCommandWithIdShouldBeScheduledAt ( $arg1, $arg2, $arg3 )

theCommandWithIdShouldResolveTo() public method

public theCommandWithIdShouldResolveTo ( $arg1, $arg2 )

theQueueIsEmpty() public method

public theQueueIsEmpty ( )

theQueueShouldHaveBeenDeleted() public method

theTimeIs() public method

public theTimeIs ( $arg1, $arg2 )

thereShouldBeNCommandsInTheQueue() public method

Property Details

$clock protected property

protected ClockInterface,MGDigital\BusQue $clock
return MGDigital\BusQue\ClockInterface

$commandBus protected property

protected CommandBusAdapterInterface,MGDigital\BusQue $commandBus
return MGDigital\BusQue\CommandBusAdapterInterface

$commandIdGenerator protected property

protected CommandIdGeneratorInterface,MGDigital\BusQue $commandIdGenerator
return MGDigital\BusQue\CommandIdGeneratorInterface

$implementation protected property

protected Implementation,MGDigital\BusQue $implementation
return MGDigital\BusQue\Implementation

$prophet protected property

protected Prophet,Prophecy $prophet
return Prophecy\Prophet

$queueResolver protected property

protected QueueResolverInterface,MGDigital\BusQue $queueResolver
return MGDigital\BusQue\QueueResolverInterface