Open Journal Systems  3.3.0
Guzzle\Tests\Service\Command\CommandTest Class Reference
Inheritance diagram for Guzzle\Tests\Service\Command\CommandTest:
Guzzle\Tests\Service\Command\AbstractCommandTest Guzzle\Tests\GuzzleTestCase

Public Member Functions

 testAddsCurlOptionsToRequestsWhenPreparing ()
 
 testAllowsValidatorToBeInjected ()
 
 testCanAccessValidationErrorsFromCommand ()
 
 testCanChangeResponseBody ()
 
 testCanDisableValidation ()
 
 testCanInitConfig ()
 
 testCanSetResultManually ()
 
 testCloneMakesNewRequest ()
 
 testCommandsAllowsCustomRequestHeaders ()
 
 testCommandsAllowsCustomRequestHeadersAsArray ()
 
 testCommandsUsesOperation ()
 
 testConstructorAddsDefaultParams ()
 
 testConvertsInvalidJsonResponsesToArray ()
 
 testConvertsJsonResponsesToArray ()
 
 testCreatesDefaultOperation ()
 
 testDeterminesShortName ()
 
 testExecute ()
 
 testExecuteThrowsExceptionWhenNoClientIsSet ()
 
 testGetRequestThrowsExceptionBeforePreparation ()
 
 testGetResponseExecutesCommandsWhenNeeded ()
 
 testGetResultExecutesCommandsWhenNeeded ()
 
 testHasOnCompleteMethod ()
 
 testIsInvokable ()
 
 testOnCompleteMustBeCallable ()
 
 testPrepareThrowsExceptionWhenNoClientIsSet ()
 
 testProcessResponseIsNotXml ()
 
 testSetClient ()
 
 testValidatesAdditionalParameters ()
 
 testValidatesCommandBeforeSending ()
 
 testValidatorDoesNotUpdateNonDefaultValues ()
 
 testValidatorUpdatesDefaultValues ()
 
- Public Member Functions inherited from Guzzle\Tests\GuzzleTestCase
 addMockedRequest (RequestInterface $request)
 
 assertContainsIns ($needle, $haystack, $message=null)
 
 compareHeaders ($filteredHeaders, $actualHeaders)
 
 getMockedRequests ()
 
 getMockResponse ($path)
 
 getWildcardObserver (HasDispatcherInterface $hasDispatcher)
 
 setMockResponse (Client $client, $paths)
 

Additional Inherited Members

- Static Public Member Functions inherited from Guzzle\Tests\GuzzleTestCase
static getServer ()
 
static getServiceBuilder ()
 
static setMockBasePath ($path)
 
static setServiceBuilder (ServiceBuilderInterface $builder)
 
- Data Fields inherited from Guzzle\Tests\GuzzleTestCase
 $mockObserver
 
- Static Public Attributes inherited from Guzzle\Tests\GuzzleTestCase
static $server
 
static $serviceBuilder
 
- Protected Member Functions inherited from Guzzle\Tests\Service\Command\AbstractCommandTest
 getClient ()
 
- Protected Member Functions inherited from Guzzle\Tests\GuzzleTestCase
 hasSubscriber (HasDispatcherInterface $dispatcher, EventSubscriberInterface $subscriber)
 
- Static Protected Attributes inherited from Guzzle\Tests\GuzzleTestCase
static $mockBasePath
 

Detailed Description

See also
Guzzle\Service\Command\AbstractCommand

Definition at line 20 of file CommandTest.php.

Member Function Documentation

◆ testAddsCurlOptionsToRequestsWhenPreparing()

Guzzle\Tests\Service\Command\CommandTest::testAddsCurlOptionsToRequestsWhenPreparing ( )

Definition at line 306 of file CommandTest.php.

◆ testAllowsValidatorToBeInjected()

Guzzle\Tests\Service\Command\CommandTest::testAllowsValidatorToBeInjected ( )

Definition at line 335 of file CommandTest.php.

◆ testCanAccessValidationErrorsFromCommand()

Guzzle\Tests\Service\Command\CommandTest::testCanAccessValidationErrorsFromCommand ( )

Definition at line 419 of file CommandTest.php.

◆ testCanChangeResponseBody()

Guzzle\Tests\Service\Command\CommandTest::testCanChangeResponseBody ( )

◆ testCanDisableValidation()

Guzzle\Tests\Service\Command\CommandTest::testCanDisableValidation ( )

◆ testCanInitConfig()

Guzzle\Tests\Service\Command\CommandTest::testCanInitConfig ( )

Definition at line 288 of file CommandTest.php.

◆ testCanSetResultManually()

Guzzle\Tests\Service\Command\CommandTest::testCanSetResultManually ( )

◆ testCloneMakesNewRequest()

Guzzle\Tests\Service\Command\CommandTest::testCloneMakesNewRequest ( )

◆ testCommandsAllowsCustomRequestHeaders()

Guzzle\Tests\Service\Command\CommandTest::testCommandsAllowsCustomRequestHeaders ( )

◆ testCommandsAllowsCustomRequestHeadersAsArray()

Guzzle\Tests\Service\Command\CommandTest::testCommandsAllowsCustomRequestHeadersAsArray ( )

◆ testCommandsUsesOperation()

Guzzle\Tests\Service\Command\CommandTest::testCommandsUsesOperation ( )

◆ testConstructorAddsDefaultParams()

Guzzle\Tests\Service\Command\CommandTest::testConstructorAddsDefaultParams ( )

Definition at line 22 of file CommandTest.php.

◆ testConvertsInvalidJsonResponsesToArray()

Guzzle\Tests\Service\Command\CommandTest::testConvertsInvalidJsonResponsesToArray ( )

@expectedException \Guzzle\Common\Exception\RuntimeException

Definition at line 135 of file CommandTest.php.

References Guzzle\Tests\Service\Command\AbstractCommandTest\getClient(), and Guzzle\Tests\GuzzleTestCase\setMockResponse().

◆ testConvertsJsonResponsesToArray()

Guzzle\Tests\Service\Command\CommandTest::testConvertsJsonResponsesToArray ( )

◆ testCreatesDefaultOperation()

Guzzle\Tests\Service\Command\CommandTest::testCreatesDefaultOperation ( )

Definition at line 329 of file CommandTest.php.

◆ testDeterminesShortName()

Guzzle\Tests\Service\Command\CommandTest::testDeterminesShortName ( )

Definition at line 30 of file CommandTest.php.

◆ testExecute()

Guzzle\Tests\Service\Command\CommandTest::testExecute ( )

◆ testExecuteThrowsExceptionWhenNoClientIsSet()

Guzzle\Tests\Service\Command\CommandTest::testExecuteThrowsExceptionWhenNoClientIsSet ( )

@expectedException RuntimeException

Definition at line 175 of file CommandTest.php.

◆ testGetRequestThrowsExceptionBeforePreparation()

Guzzle\Tests\Service\Command\CommandTest::testGetRequestThrowsExceptionBeforePreparation ( )

@expectedException RuntimeException

Definition at line 46 of file CommandTest.php.

◆ testGetResponseExecutesCommandsWhenNeeded()

Guzzle\Tests\Service\Command\CommandTest::testGetResponseExecutesCommandsWhenNeeded ( )

◆ testGetResultExecutesCommandsWhenNeeded()

Guzzle\Tests\Service\Command\CommandTest::testGetResultExecutesCommandsWhenNeeded ( )

◆ testHasOnCompleteMethod()

Guzzle\Tests\Service\Command\CommandTest::testHasOnCompleteMethod ( )

◆ testIsInvokable()

Guzzle\Tests\Service\Command\CommandTest::testIsInvokable ( )

◆ testOnCompleteMustBeCallable()

Guzzle\Tests\Service\Command\CommandTest::testOnCompleteMustBeCallable ( )

@expectedException \Guzzle\Common\Exception\InvalidArgumentException

Definition at line 269 of file CommandTest.php.

References Guzzle\Tests\Service\Command\AbstractCommandTest\getClient().

◆ testPrepareThrowsExceptionWhenNoClientIsSet()

Guzzle\Tests\Service\Command\CommandTest::testPrepareThrowsExceptionWhenNoClientIsSet ( )

@expectedException RuntimeException

Definition at line 184 of file CommandTest.php.

◆ testProcessResponseIsNotXml()

Guzzle\Tests\Service\Command\CommandTest::testProcessResponseIsNotXml ( )

◆ testSetClient()

Guzzle\Tests\Service\Command\CommandTest::testSetClient ( )

◆ testValidatesAdditionalParameters()

Guzzle\Tests\Service\Command\CommandTest::testValidatesAdditionalParameters ( )

@expectedException \Guzzle\Service\Exception\ValidationException @expectedExceptionMessage Validation errors: [abc] must be of type string

Definition at line 395 of file CommandTest.php.

References Guzzle\Service\Description\ServiceDescription\factory().

◆ testValidatesCommandBeforeSending()

Guzzle\Tests\Service\Command\CommandTest::testValidatesCommandBeforeSending ( )

@expectedException \Guzzle\Service\Exception\ValidationException @expectedExceptionMessage [Foo] Baz

Definition at line 378 of file CommandTest.php.

◆ testValidatorDoesNotUpdateNonDefaultValues()

Guzzle\Tests\Service\Command\CommandTest::testValidatorDoesNotUpdateNonDefaultValues ( )

Definition at line 356 of file CommandTest.php.

◆ testValidatorUpdatesDefaultValues()

Guzzle\Tests\Service\Command\CommandTest::testValidatorUpdatesDefaultValues ( )

Definition at line 365 of file CommandTest.php.


The documentation for this class was generated from the following file: