Skip to content

Commit fa5ce78

Browse files
committed
Fix tests for PHP 7.4
1 parent 4a57494 commit fa5ce78

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tests/cursor/cursor-tailable-001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function insert(MongoDB\Driver\Manager $manager, $from, $to = null)
2222

2323
$writeResult = $manager->executeBulkWrite(NS, $bulkWrite);
2424

25-
printf("Inserted %d document(s): %s\n", $writeResult->getInsertedCount(), implode(range($from, $to), ', '));
25+
printf("Inserted %d document(s): %s\n", $writeResult->getInsertedCount(), implode(', ', range($from, $to)));
2626
}
2727

2828
$manager = new MongoDB\Driver\Manager(URI);

tests/cursor/cursor-tailable-002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function insert(MongoDB\Driver\Manager $manager, $from, $to = null)
2323

2424
$writeResult = $manager->executeBulkWrite(NS, $bulkWrite);
2525

26-
printf("Inserted %d document(s): %s\n", $writeResult->getInsertedCount(), implode(range($from, $to), ', '));
26+
printf("Inserted %d document(s): %s\n", $writeResult->getInsertedCount(), implode(', ', range($from, $to)));
2727
}
2828

2929
$manager = new MongoDB\Driver\Manager(URI);

tests/cursor/cursor-tailable_error-001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function insert(MongoDB\Driver\Manager $manager, $from, $to = null)
2222

2323
$writeResult = $manager->executeBulkWrite(NS, $bulkWrite);
2424

25-
printf("Inserted %d document(s): %s\n", $writeResult->getInsertedCount(), implode(range($from, $to), ', '));
25+
printf("Inserted %d document(s): %s\n", $writeResult->getInsertedCount(), implode(', ', range($from, $to)));
2626
}
2727

2828
$manager = new MongoDB\Driver\Manager(URI);

tests/cursor/cursor-tailable_error-002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function insert(MongoDB\Driver\Manager $manager, $from, $to = null)
2323

2424
$writeResult = $manager->executeBulkWrite(NS, $bulkWrite);
2525

26-
printf("Inserted %d document(s): %s\n", $writeResult->getInsertedCount(), implode(range($from, $to), ', '));
26+
printf("Inserted %d document(s): %s\n", $writeResult->getInsertedCount(), implode(', ', range($from, $to)));
2727
}
2828

2929
$manager = new MongoDB\Driver\Manager(URI);

0 commit comments

Comments
 (0)