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

Public Member Functions

 testConstructorValidatesClosure ()
 
 testExecutesClosure ()
 
 testMustReturnRequest ()
 
- 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\GuzzleTestCase
 hasSubscriber (HasDispatcherInterface $dispatcher, EventSubscriberInterface $subscriber)
 
- Static Protected Attributes inherited from Guzzle\Tests\GuzzleTestCase
static $mockBasePath
 

Detailed Description

See also
Guzzle\Service\Command\ClosureCommand

Definition at line 12 of file ClosureCommandTest.php.

Member Function Documentation

◆ testConstructorValidatesClosure()

Guzzle\Tests\Service\Command\ClosureCommandTest::testConstructorValidatesClosure ( )

@expectedException InvalidArgumentException @expectedExceptionMessage A closure must be passed in the parameters array

Definition at line 18 of file ClosureCommandTest.php.

◆ testExecutesClosure()

Guzzle\Tests\Service\Command\ClosureCommandTest::testExecutesClosure ( )

◆ testMustReturnRequest()

Guzzle\Tests\Service\Command\ClosureCommandTest::testMustReturnRequest ( )

@expectedException UnexpectedValueException @expectedExceptionMessage Closure command did not return a RequestInterface object

Definition at line 43 of file ClosureCommandTest.php.

References Guzzle\Tests\GuzzleTestCase\getServiceBuilder().


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