ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
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... | |
![]() | |
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.
Referenced by Monolog\Handler\ElasticSearchHandlerTest\testHandleIntegration().
|
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().
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, $ignore, and Monolog\TestCase\getRecord().
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 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, Monolog\Logger\ERROR, Monolog\Handler\ElasticSearchHandlerTest\getCreatedDocId(), and Monolog\Handler\ElasticSearchHandlerTest\getDocSourceFromElastic().
Monolog\Handler\ElasticSearchHandlerTest::testOptions | ( | ) |
@covers Monolog\Handler\ElasticSearchHandler::__construct @covers Monolog\Handler\ElasticSearchHandler::getOptions
Definition at line 114 of file ElasticSearchHandlerTest.php.
Monolog\Handler\ElasticSearchHandlerTest::testSetFormatter | ( | ) |
@covers Monolog\Handler\ElasticSearchHandler::setFormatter
Definition at line 88 of file ElasticSearchHandlerTest.php.
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.
|
protected |
|
protected |
Definition at line 32 of file ElasticSearchHandlerTest.php.