Skip to content

Commit bcc3bbe

Browse files
committed
PHPLIB-879: Convert command monitoring tests to unified format
Synced with mongodb/specifications@c51e737
1 parent 8f2e921 commit bcc3bbe

23 files changed

+1893
-1896
lines changed

tests/SpecTests/CommandExpectations.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,6 @@ public static function fromClientSideEncryption(array $expectedEvents)
8181
return $o;
8282
}
8383

84-
public static function fromCommandMonitoring(array $expectedEvents)
85-
{
86-
return new self($expectedEvents);
87-
}
88-
8984
public static function fromCrud(array $expectedEvents)
9085
{
9186
$o = new self($expectedEvents);

tests/SpecTests/CommandMonitoringSpecTest.php

Lines changed: 0 additions & 229 deletions
This file was deleted.

tests/SpecTests/Operation.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,6 @@ public static function fromClientSideEncryption(stdClass $operation)
9696
return $o;
9797
}
9898

99-
public static function fromCommandMonitoring(stdClass $operation)
100-
{
101-
$o = new self($operation);
102-
103-
if (isset($operation->collectionOptions)) {
104-
$o->collectionOptions = (array) $operation->collectionOptions;
105-
}
106-
107-
/* We purposefully avoid setting a default error expectation, because
108-
* some tests may trigger a write or command error. */
109-
110-
return $o;
111-
}
112-
11399
/**
114100
* This method is exclusively used to prepare nested operations for the
115101
* withTransaction session operation

tests/SpecTests/command-monitoring/bulkWrite.json

Lines changed: 0 additions & 110 deletions
This file was deleted.

0 commit comments

Comments
 (0)