mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 21:26:43 +02:00
Fix test moar
This commit is contained in:
@@ -32,7 +32,7 @@ class RollbarHandlerTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
private $reportedExceptionArguments = null;
|
public $reportedExceptionArguments = null;
|
||||||
|
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
@@ -60,11 +60,13 @@ class RollbarHandlerTest extends TestCase
|
|||||||
->setMethods(array('report_message', 'report_exception', 'flush'))
|
->setMethods(array('report_message', 'report_exception', 'flush'))
|
||||||
->getMock();
|
->getMock();
|
||||||
|
|
||||||
|
$that = $this;
|
||||||
|
|
||||||
$this->rollbarNotifier
|
$this->rollbarNotifier
|
||||||
->expects($this->any())
|
->expects($this->any())
|
||||||
->method('report_exception')
|
->method('report_exception')
|
||||||
->willReturnCallback(function ($exception, $context, $payload) {
|
->willReturnCallback(function ($exception, $context, $payload) use ($that) {
|
||||||
$this->reportedExceptionArguments = compact('exception', 'context', 'payload');
|
$that->reportedExceptionArguments = compact('exception', 'context', 'payload');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user