ElasticsearchTestBase::invokeMethod
From https://jtreminio.com/2013/03/unit-testing-tutorial-part-3-testing-protected-private-methods-coverage-reports-and-crap/ Call protected/private method of a class.
Signature
public function invokeMethod(&
$object,
string
$methodName,
[array
$parameters = ] )
Parameters
$object
—$methodName
— string- Method name to call
$parameters
— array- Array of parameters to pass into method.
Returns
- mixed
- Method return.