@@ -11,7 +12,9 @@ use MongoDB\Driver\ReadPreference;
...
@@ -11,7 +12,9 @@ use MongoDB\Driver\ReadPreference;
useMongoDB\Driver\Server;
useMongoDB\Driver\Server;
usestdClass;
usestdClass;
useSymfony\Bridge\PhpUnit\SetUpTearDownTrait;
useSymfony\Bridge\PhpUnit\SetUpTearDownTrait;
usefunctionarray_unique;
usefunctionbasename;
usefunctionbasename;
usefunctioncount;
usefunctiondirname;
usefunctiondirname;
usefunctionfile_get_contents;
usefunctionfile_get_contents;
usefunctionget_object_vars;
usefunctionget_object_vars;
...
@@ -35,6 +38,9 @@ class TransactionsSpecTest extends FunctionalTestCase
...
@@ -35,6 +38,9 @@ class TransactionsSpecTest extends FunctionalTestCase
* @var array
* @var array
*/
*/
privatestatic$incompleteTests=[
privatestatic$incompleteTests=[
'transactions/mongos-recovery-token: commitTransaction retry fails on new mongos'=>'isMaster failpoints cannot be disabled',
'transactions/pin-mongos: remain pinned after non-transient error on commit'=>'Blocked on SPEC-1320',
'transactions/pin-mongos: unpin after transient error within a transaction and commit'=>'isMaster failpoints cannot be disabled',
'transactions/read-pref: default readPreference'=>'PHPLIB does not properly inherit readPreference for transactions (PHPLIB-473)',
'transactions/read-pref: default readPreference'=>'PHPLIB does not properly inherit readPreference for transactions (PHPLIB-473)',
'transactions/read-pref: primary readPreference'=>'PHPLIB does not properly inherit readPreference for transactions (PHPLIB-473)',
'transactions/read-pref: primary readPreference'=>'PHPLIB does not properly inherit readPreference for transactions (PHPLIB-473)',
'transactions/run-command: run command with secondary read preference in client option and primary read preference in transaction options'=>'PHPLIB does not properly inherit readPreference for transactions (PHPLIB-473)',
'transactions/run-command: run command with secondary read preference in client option and primary read preference in transaction options'=>'PHPLIB does not properly inherit readPreference for transactions (PHPLIB-473)',
...
@@ -48,6 +54,8 @@ class TransactionsSpecTest extends FunctionalTestCase
...
@@ -48,6 +54,8 @@ class TransactionsSpecTest extends FunctionalTestCase
parent::setUp();
parent::setUp();
static::killAllSessions();
static::killAllSessions();
$this->skipIfTransactionsAreNotSupported();
}
}
privatefunctiondoTearDown()
privatefunctiondoTearDown()
...
@@ -128,13 +136,11 @@ class TransactionsSpecTest extends FunctionalTestCase
...
@@ -128,13 +136,11 @@ class TransactionsSpecTest extends FunctionalTestCase