Property | Type | Description | |
---|---|---|---|
$circuitBreaker | PHPUnit_Framework_MockObject_MockObject | ||
$circuitBreakerFactory | PHPUnit_Framework_MockObject_MockObject | ||
$command | Tests\Odesk\Phystrix\CommandMock | ||
$commandMetrics | PHPUnit_Framework_MockObject_MockObject | ||
$commandMetricsFactory | PHPUnit_Framework_MockObject_MockObject | ||
$requestLog | Odesk\Phystrix\RequestLog |
Method | Description | |
---|---|---|
configBoolProvider ( ) : array | ||
testBadRequestExceptionTracksNoMetrics ( ) | ||
testExecute ( ) | ||
testExecuteDefaultCommandKey ( ) | ||
testExecuteFallbackDisabled ( ) | ||
testExecuteFallbackFailed ( ) | ||
testExecutePresetCommandKey ( ) | ||
testExecuteRequestNotAllowed ( ) | ||
testExecuteRunException ( ) | ||
testRequestCacheDisabled ( ) | ||
testRequestCacheGetCacheKeyNotImplemented ( ) | ||
testRequestCacheHit ( ) | ||
testRequestCacheMiss ( ) | Test case for cache miss scenario | |
testRequestCacheNotInjected ( boolean $cacheEnabled ) | Ensure command does not break when configured to cache, though cache hasn't been injected | |
testRequestLogNotInjected ( boolean $logEnabled ) | Ensure command does not break when configured to log, though one hasn't been injected | |
testRequestLogOff ( ) | ||
testRuntimeExceptionPopulated ( ) | ||
testSavesResultToCache ( ) | ||
testSetTestMergesConfig ( ) | ||
testShortCircuitedExceptionMessage ( ) |
Method | Description | |
---|---|---|
setUp ( ) | ||
setUpCommonExpectations ( boolean $allowRequest = true ) | Something many tests need | |
setUpExecutionDelayExpectations ( ) | Makes the command run for 555 milliseconds |
protected setUpCommonExpectations ( boolean $allowRequest = true ) | ||
$allowRequest | boolean | (Optional) Whether CB should allow the request |
protected setUpExecutionDelayExpectations ( ) |
public testBadRequestExceptionTracksNoMetrics ( ) |
public testRequestCacheGetCacheKeyNotImplemented ( ) |
public testRequestCacheMiss ( ) |
public testRequestCacheNotInjected ( boolean $cacheEnabled ) | ||
$cacheEnabled | boolean | whether config is set to use request log |
public testRequestLogNotInjected ( boolean $logEnabled ) | ||
$logEnabled | boolean | whether config is set to use request log |
protected PHPUnit_Framework_MockObject_MockObject $circuitBreaker | ||
return | PHPUnit_Framework_MockObject_MockObject |
protected PHPUnit_Framework_MockObject_MockObject $circuitBreakerFactory | ||
return | PHPUnit_Framework_MockObject_MockObject |
protected CommandMock,Tests\Odesk\Phystrix $command | ||
return | Tests\Odesk\Phystrix\CommandMock |
protected PHPUnit_Framework_MockObject_MockObject $commandMetrics | ||
return | PHPUnit_Framework_MockObject_MockObject |
protected PHPUnit_Framework_MockObject_MockObject $commandMetricsFactory | ||
return | PHPUnit_Framework_MockObject_MockObject |