Skip to content

Commit 364dff2

Browse files
committed
clarify test with comment
1 parent e3bcf27 commit 364dff2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/LDClientTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,10 @@ public function testTrackSendsEventWithDataAndMetricValue()
595595

596596
public function testEventsAreNotPublishedIfSendEventsIsFalse()
597597
{
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.
598602
$mockPublisher = new MockEventPublisher("", array());
599603
$options = array(
600604
'feature_requester_class' => MockFeatureRequester::class,

0 commit comments

Comments
 (0)