<commit_before>--TEST--
MongoDB\Driver\ReadPreference construction (primary with default maxStalenessSeconds)
--FILE--
<?php
require_once __DIR__ . '/utils.inc';

$rp = new MongoDB\Driver\ReadPreference(MongoDB\Driver\ReadPreference::RP_PRIMARY, null, ['maxStalenessSeconds' => -1]);
var_dump( $rp );
?>
--EXPECT--
object(MongoDB\Driver\ReadPreference)#%d (%d) {
  ["mode"]=>
  string(7) "primary"
}<commit_msg>Fixed test file<commit_after>--TEST--
MongoDB\Driver\ReadPreference construction (primary with default maxStalenessSeconds)
--FILE--
<?php
require_once __DIR__ . '/utils.inc';

$rp = new MongoDB\Driver\ReadPreference(MongoDB\Driver\ReadPreference::RP_PRIMARY, null, ['maxStalenessSeconds' => -1]);
var_dump( $rp );
?>
--EXPECTF--
object(MongoDB\Driver\ReadPreference)#%d (%d) {
  ["mode"]=>
  string(7) "primary"
}
{'fraction_non_alphanumeric': 0.17939393939393938, 'fraction_numerical': 0.0048484848484848485, 'mean_word_length': 5.608, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7380572', 'n_tokens_mistral': 300, 'n_tokens_neox': 296, 'n_words': 54}