|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Inheritance diagram for Monolog\Handler\ElasticSearchHandlerTest:
Collaboration diagram for Monolog\Handler\ElasticSearchHandlerTest:Public Member Functions | |
| setUp () | |
| testHandle () | |
| @covers Monolog\Handler\ElasticSearchHandler::write @covers Monolog\Handler\ElasticSearchHandler::handleBatch @covers Monolog\Handler\ElasticSearchHandler::bulkSend @covers Monolog\Handler\ElasticSearchHandler::getDefaultFormatter More... | |
| testSetFormatter () | |
| @covers Monolog\Handler\ElasticSearchHandler::setFormatter More... | |
| testSetFormatterInvalid () | |
| @covers Monolog\Handler\ElasticSearchHandler::setFormatter @expectedException InvalidArgumentException @expectedExceptionMessage ElasticSearchHandler is only compatible with ElasticaFormatter More... | |
| testOptions () | |
| @covers Monolog\Handler\ElasticSearchHandler::__construct @covers Monolog\Handler\ElasticSearchHandler::getOptions More... | |
| testConnectionErrors ($ignore, $expectedError) | |
| @covers Monolog\Handler\ElasticSearchHandler::bulkSend @dataProvider providerTestConnectionErrors More... | |
| providerTestConnectionErrors () | |
| testHandleIntegration () | |
| Integration test using localhost Elastic Search server. More... | |
Protected Member Functions | |
| getCreatedDocId (Response $response) | |
| Return last created document id from ES response. More... | |
| getDocSourceFromElastic (Client $client, $index, $type, $documentId) | |
| Retrieve document by id from Elasticsearch. More... | |
Protected Member Functions inherited from Monolog\TestCase | |
| getRecord ($level=Logger::WARNING, $message='test', $context=array()) | |
| getMultipleRecords () | |
| getIdentityFormatter () | |
Protected Attributes | |
| $client | |
| $options | |
Definition at line 22 of file ElasticSearchHandlerTest.php.
|
protected |
Return last created document id from ES response.
| Response | $response | Elastica Response object |
Definition at line 213 of file ElasticSearchHandlerTest.php.
References $data, and $response.
Referenced by Monolog\Handler\ElasticSearchHandlerTest\testHandleIntegration().
Here is the caller graph for this function:
|
protected |
Retrieve document by id from Elasticsearch.
| Client | $client | Elastica client |
| string | $index | |
| string | $type | |
| string | $documentId |
Definition at line 229 of file ElasticSearchHandlerTest.php.
References Monolog\Handler\ElasticSearchHandlerTest\$client, and $data.
Referenced by Monolog\Handler\ElasticSearchHandlerTest\testHandleIntegration().
Here is the caller graph for this function:| Monolog\Handler\ElasticSearchHandlerTest::providerTestConnectionErrors | ( | ) |
Definition at line 147 of file ElasticSearchHandlerTest.php.
| Monolog\Handler\ElasticSearchHandlerTest::setUp | ( | ) |
Definition at line 37 of file ElasticSearchHandlerTest.php.
| Monolog\Handler\ElasticSearchHandlerTest::testConnectionErrors | ( | $ignore, | |
| $expectedError | |||
| ) |
@covers Monolog\Handler\ElasticSearchHandler::bulkSend @dataProvider providerTestConnectionErrors
Definition at line 129 of file ElasticSearchHandlerTest.php.
References Monolog\Handler\ElasticSearchHandlerTest\$client, $handler, $ignore, and Monolog\TestCase\getRecord().
Here is the call graph for this function:| Monolog\Handler\ElasticSearchHandlerTest::testHandle | ( | ) |
@covers Monolog\Handler\ElasticSearchHandler::write @covers Monolog\Handler\ElasticSearchHandler::handleBatch @covers Monolog\Handler\ElasticSearchHandler::bulkSend @covers Monolog\Handler\ElasticSearchHandler::getDefaultFormatter
Definition at line 57 of file ElasticSearchHandlerTest.php.
References $handler, and Monolog\Logger\ERROR.
| Monolog\Handler\ElasticSearchHandlerTest::testHandleIntegration | ( | ) |
Integration test using localhost Elastic Search server.
@covers Monolog\Handler\ElasticSearchHandler::__construct @covers Monolog\Handler\ElasticSearchHandler::handleBatch @covers Monolog\Handler\ElasticSearchHandler::bulkSend @covers Monolog\Handler\ElasticSearchHandler::getDefaultFormatter
Definition at line 163 of file ElasticSearchHandlerTest.php.
References Monolog\Handler\ElasticSearchHandlerTest\$client, $handler, Monolog\Logger\ERROR, Monolog\Handler\ElasticSearchHandlerTest\getCreatedDocId(), and Monolog\Handler\ElasticSearchHandlerTest\getDocSourceFromElastic().
Here is the call graph for this function:| Monolog\Handler\ElasticSearchHandlerTest::testOptions | ( | ) |
@covers Monolog\Handler\ElasticSearchHandler::__construct @covers Monolog\Handler\ElasticSearchHandler::getOptions
Definition at line 114 of file ElasticSearchHandlerTest.php.
References $handler.
| Monolog\Handler\ElasticSearchHandlerTest::testSetFormatter | ( | ) |
@covers Monolog\Handler\ElasticSearchHandler::setFormatter
Definition at line 88 of file ElasticSearchHandlerTest.php.
References $handler.
| Monolog\Handler\ElasticSearchHandlerTest::testSetFormatterInvalid | ( | ) |
@covers Monolog\Handler\ElasticSearchHandler::setFormatter @expectedException InvalidArgumentException @expectedExceptionMessage ElasticSearchHandler is only compatible with ElasticaFormatter
Definition at line 103 of file ElasticSearchHandlerTest.php.
References $handler.
|
protected |
|
protected |
Definition at line 32 of file ElasticSearchHandlerTest.php.