We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3bcf27 commit 364dff2Copy full SHA for 364dff2
tests/LDClientTest.php
@@ -595,6 +595,10 @@ public function testTrackSendsEventWithDataAndMetricValue()
595
596
public function testEventsAreNotPublishedIfSendEventsIsFalse()
597
{
598
+ // In order to do this test, we cannot provide a mock object for Event_Processor_,
599
+ // because if we do that, it won't bother even looking at the send_events flag.
600
+ // Instead, we need to just put in a mock Event_Publisher_, so that the default
601
+ // EventProcessor would forward events to it if send_events were not disabled.
602
$mockPublisher = new MockEventPublisher("", array());
603
$options = array(
604
'feature_requester_class' => MockFeatureRequester::class,
0 commit comments