Open Journal Systems  3.3.0
Guzzle\Tests\Plugin\Mock\MockPluginTest Class Reference
Inheritance diagram for Guzzle\Tests\Plugin\Mock\MockPluginTest:
Guzzle\Tests\GuzzleTestCase

Public Member Functions

 testAddsMockResponseToRequestFromClient ()
 
 testAddsResponseFilesToQueue ()
 
 testAddsResponseObjectsToQueue ()
 
 testCanBeTemporary ()
 
 testCanClearQueue ()
 
 testCanInspectQueue ()
 
 testCanMockBadRequestExceptions ()
 
 testDescribesEvents ()
 
 testDescribesSubscribedEvents ()
 
 testDetachesTemporaryWhenEmpty ()
 
 testInvalidResponsesThrowAnException ()
 
 testIsCountable ()
 
 testLoadsResponsesFromConstructor ()
 
 testReadsBodiesFromMockedRequests ()
 
 testRetrievesResponsesFromFiles ()
 
 testStoresMockedRequests ()
 
 testThrowsExceptionWhenResponseFileIsNotFound ()
 
 testUpdateThrowsExceptionWhenEmpty ()
 
- 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\Plugin\Mock\MockPlugin

Definition at line 15 of file MockPluginTest.php.

Member Function Documentation

◆ testAddsMockResponseToRequestFromClient()

Guzzle\Tests\Plugin\Mock\MockPluginTest::testAddsMockResponseToRequestFromClient ( )

@depends testAddsResponseFilesToQueue

Definition at line 105 of file MockPluginTest.php.

References Guzzle\Plugin\Mock\MockPlugin\getMockFile().

◆ testAddsResponseFilesToQueue()

Guzzle\Tests\Plugin\Mock\MockPluginTest::testAddsResponseFilesToQueue ( )

Definition at line 95 of file MockPluginTest.php.

◆ testAddsResponseObjectsToQueue()

Guzzle\Tests\Plugin\Mock\MockPluginTest::testAddsResponseObjectsToQueue ( )

Definition at line 87 of file MockPluginTest.php.

References Guzzle\Http\Message\Response\fromMessage().

◆ testCanBeTemporary()

Guzzle\Tests\Plugin\Mock\MockPluginTest::testCanBeTemporary ( )

Definition at line 27 of file MockPluginTest.php.

◆ testCanClearQueue()

Guzzle\Tests\Plugin\Mock\MockPluginTest::testCanClearQueue ( )

@depends testIsCountable

Definition at line 45 of file MockPluginTest.php.

References Guzzle\Http\Message\Response\fromMessage().

◆ testCanInspectQueue()

Guzzle\Tests\Plugin\Mock\MockPluginTest::testCanInspectQueue ( )

Definition at line 53 of file MockPluginTest.php.

References Guzzle\Http\Message\Response\fromMessage().

◆ testCanMockBadRequestExceptions()

Guzzle\Tests\Plugin\Mock\MockPluginTest::testCanMockBadRequestExceptions ( )

Definition at line 183 of file MockPluginTest.php.

◆ testDescribesEvents()

Guzzle\Tests\Plugin\Mock\MockPluginTest::testDescribesEvents ( )

Definition at line 22 of file MockPluginTest.php.

References Guzzle\Plugin\Mock\MockPlugin\getAllEvents().

◆ testDescribesSubscribedEvents()

Guzzle\Tests\Plugin\Mock\MockPluginTest::testDescribesSubscribedEvents ( )

◆ testDetachesTemporaryWhenEmpty()

Guzzle\Tests\Plugin\Mock\MockPluginTest::testDetachesTemporaryWhenEmpty ( )

@depends testAddsMockResponseToRequestFromClient

Definition at line 133 of file MockPluginTest.php.

References Guzzle\Plugin\Mock\MockPlugin\getMockFile(), and Guzzle\Tests\GuzzleTestCase\hasSubscriber().

◆ testInvalidResponsesThrowAnException()

Guzzle\Tests\Plugin\Mock\MockPluginTest::testInvalidResponsesThrowAnException ( )

@expectedException InvalidArgumentException

Definition at line 81 of file MockPluginTest.php.

◆ testIsCountable()

Guzzle\Tests\Plugin\Mock\MockPluginTest::testIsCountable ( )

Definition at line 35 of file MockPluginTest.php.

References Guzzle\Http\Message\Response\fromMessage().

◆ testLoadsResponsesFromConstructor()

Guzzle\Tests\Plugin\Mock\MockPluginTest::testLoadsResponsesFromConstructor ( )

Definition at line 145 of file MockPluginTest.php.

◆ testReadsBodiesFromMockedRequests()

Guzzle\Tests\Plugin\Mock\MockPluginTest::testReadsBodiesFromMockedRequests ( )

Definition at line 169 of file MockPluginTest.php.

References Guzzle\Http\EntityBody\factory().

◆ testRetrievesResponsesFromFiles()

Guzzle\Tests\Plugin\Mock\MockPluginTest::testRetrievesResponsesFromFiles ( )

Definition at line 63 of file MockPluginTest.php.

References Guzzle\Plugin\Mock\MockPlugin\getMockFile().

◆ testStoresMockedRequests()

Guzzle\Tests\Plugin\Mock\MockPluginTest::testStoresMockedRequests ( )

Definition at line 151 of file MockPluginTest.php.

◆ testThrowsExceptionWhenResponseFileIsNotFound()

Guzzle\Tests\Plugin\Mock\MockPluginTest::testThrowsExceptionWhenResponseFileIsNotFound ( )

@expectedException InvalidArgumentException

Definition at line 73 of file MockPluginTest.php.

References Guzzle\Plugin\Mock\MockPlugin\getMockFile().

◆ testUpdateThrowsExceptionWhenEmpty()

Guzzle\Tests\Plugin\Mock\MockPluginTest::testUpdateThrowsExceptionWhenEmpty ( )

@depends testAddsResponseFilesToQueue @expectedException \OutOfBoundsException

Definition at line 124 of file MockPluginTest.php.


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