Open Journal Systems  3.3.0
Guzzle\Tests\Log\MessageFormatterTest Class Reference
Inheritance diagram for Guzzle\Tests\Log\MessageFormatterTest:
Guzzle\Tests\GuzzleTestCase

Public Member Functions

 logProvider ()
 
 setUp ()
 
 testAddsTimestamp ()
 
 testFormatsMessages ($template, $output)
 
 testFormatsRequestsAndResponses ()
 
 testInjectsTotalTime ()
 
 testUsesEmptyStringWhenNoHandleAndNoResponse ()
 
 testUsesResponseWhenNoHandleAndGettingCurlInformation ()
 
- 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)
 

Protected Attributes

 $handle
 
 $request
 
 $response
 

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\Log\MessageFormatter

Definition at line 17 of file MessageFormatterTest.php.

Member Function Documentation

◆ logProvider()

Guzzle\Tests\Log\MessageFormatterTest::logProvider ( )

Definition at line 60 of file MessageFormatterTest.php.

◆ setUp()

Guzzle\Tests\Log\MessageFormatterTest::setUp ( )

Definition at line 23 of file MessageFormatterTest.php.

References Guzzle\Http\EntityBody\factory().

◆ testAddsTimestamp()

Guzzle\Tests\Log\MessageFormatterTest::testAddsTimestamp ( )

Definition at line 103 of file MessageFormatterTest.php.

◆ testFormatsMessages()

Guzzle\Tests\Log\MessageFormatterTest::testFormatsMessages (   $template,
  $output 
)

@dataProvider logProvider

Definition at line 90 of file MessageFormatterTest.php.

◆ testFormatsRequestsAndResponses()

Guzzle\Tests\Log\MessageFormatterTest::testFormatsRequestsAndResponses ( )

Definition at line 96 of file MessageFormatterTest.php.

◆ testInjectsTotalTime()

Guzzle\Tests\Log\MessageFormatterTest::testInjectsTotalTime ( )

Definition at line 131 of file MessageFormatterTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testUsesEmptyStringWhenNoHandleAndNoResponse()

Guzzle\Tests\Log\MessageFormatterTest::testUsesEmptyStringWhenNoHandleAndNoResponse ( )

Definition at line 125 of file MessageFormatterTest.php.

◆ testUsesResponseWhenNoHandleAndGettingCurlInformation()

Guzzle\Tests\Log\MessageFormatterTest::testUsesResponseWhenNoHandleAndGettingCurlInformation ( )

Field Documentation

◆ $handle

Guzzle\Tests\Log\MessageFormatterTest::$handle
protected

Definition at line 21 of file MessageFormatterTest.php.

◆ $request

Guzzle\Tests\Log\MessageFormatterTest::$request
protected

Definition at line 19 of file MessageFormatterTest.php.

◆ $response

Guzzle\Tests\Log\MessageFormatterTest::$response
protected

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