Skip to content

Commit 5ef2240

Browse files
committed
Merge branch 'v1.4' into v1.5
* v1.4: Rename matrix testing exclusion groups
2 parents 7f889f4 + 2e2e205 commit 5ef2240

11 files changed

+28
-28
lines changed

.evergreen/run-tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if [ "$IS_MATRIX_TESTING" == "true" ]; then
3737
;;
3838
esac
3939

40-
PHPUNIT_OPTS="--dont-report-useless-tests --exclude-group matrix-testing-server-${MONGODB_VERSION_NUMBER}-driver-${DRIVER_MONGODB_VERSION},matrix-testing-server-${MONGODB_VERSION_NUMBER}-driver-${DRIVER_MONGODB_VERSION}-topology-${TOPOLOGY}"
40+
PHPUNIT_OPTS="--dont-report-useless-tests --exclude-group matrix-testing-exclude-server-${MONGODB_VERSION_NUMBER}-driver-${DRIVER_MONGODB_VERSION},matrix-testing-exclude-server-${MONGODB_VERSION_NUMBER}-driver-${DRIVER_MONGODB_VERSION}-topology-${TOPOLOGY}"
4141

4242
DIR=$(dirname $0)
4343
. $DIR/install-dependencies.sh

tests/Collection/CollectionFunctionalTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,10 @@ public function testWithOptionsPassesOptions()
380380
}
381381

382382
/**
383-
* @group matrix-testing-server-4.4-driver-4.0
384-
* @group matrix-testing-server-4.4-driver-4.2
385-
* @group matrix-testing-server-5.0-driver-4.0
386-
* @group matrix-testing-server-5.0-driver-4.2
383+
* @group matrix-testing-exclude-server-4.4-driver-4.0
384+
* @group matrix-testing-exclude-server-4.4-driver-4.2
385+
* @group matrix-testing-exclude-server-5.0-driver-4.0
386+
* @group matrix-testing-exclude-server-5.0-driver-4.2
387387
*/
388388
public function testMapReduce()
389389
{

tests/Collection/CrudSpecFunctionalTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
*
3434
* @see https://github.com/mongodb/specifications/tree/master/source/crud/tests
3535
*
36-
* @group matrix-testing-server-5.0-driver-4.0
36+
* @group matrix-testing-exclude-server-5.0-driver-4.0
3737
*/
3838
class CrudSpecFunctionalTest extends FunctionalTestCase
3939
{

tests/Database/DatabaseFunctionalTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ public function testGetSelectsCollectionAndInheritsOptions()
157157
}
158158

159159
/**
160-
* @group matrix-testing-server-4.2-driver-4.0-topology-sharded_cluster
161-
* @group matrix-testing-server-4.4-driver-4.0-topology-sharded_cluster
162-
* @group matrix-testing-server-5.0-driver-4.0-topology-sharded_cluster
160+
* @group matrix-testing-exclude-server-4.2-driver-4.0-topology-sharded_cluster
161+
* @group matrix-testing-exclude-server-4.4-driver-4.0-topology-sharded_cluster
162+
* @group matrix-testing-exclude-server-5.0-driver-4.0-topology-sharded_cluster
163163
*/
164164
public function testModifyCollection()
165165
{

tests/DocumentationExamplesTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ public function testExample_55_58()
931931
$this->assertInventoryCount(0);
932932
}
933933

934-
/** @group matrix-testing-server-5.0-driver-4.0-topology-sharded_cluster */
934+
/** @group matrix-testing-exclude-server-5.0-driver-4.0-topology-sharded_cluster */
935935
public function testChangeStreamExample_1_4()
936936
{
937937
$this->skipIfChangeStreamIsNotSupported();

tests/Model/IndexInfoFunctionalTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public function testIs2dSphere()
4848
}
4949

5050
/**
51-
* @group matrix-testing-server-5.0-driver-4.0
52-
* @group matrix-testing-server-5.0-driver-4.2
51+
* @group matrix-testing-exclude-server-5.0-driver-4.0
52+
* @group matrix-testing-exclude-server-5.0-driver-4.2
5353
*/
5454
public function testIsGeoHaystack()
5555
{

tests/Operation/ListCollectionsFunctionalTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ public function testListCollectionsForNewlyCreatedDatabase()
3737
}
3838

3939
/**
40-
* @group matrix-testing-server-4.4-driver-4.0
41-
* @group matrix-testing-server-4.4-driver-4.2
42-
* @group matrix-testing-server-5.0-driver-4.0
43-
* @group matrix-testing-server-5.0-driver-4.2
40+
* @group matrix-testing-exclude-server-4.4-driver-4.0
41+
* @group matrix-testing-exclude-server-4.4-driver-4.2
42+
* @group matrix-testing-exclude-server-5.0-driver-4.0
43+
* @group matrix-testing-exclude-server-5.0-driver-4.2
4444
*/
4545
public function testIdIndexAndInfo()
4646
{

tests/Operation/MapReduceFunctionalTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
use function version_compare;
1414

1515
/**
16-
* @group matrix-testing-server-4.4-driver-4.0
17-
* @group matrix-testing-server-4.4-driver-4.2
18-
* @group matrix-testing-server-5.0-driver-4.0
19-
* @group matrix-testing-server-5.0-driver-4.2
16+
* @group matrix-testing-exclude-server-4.4-driver-4.0
17+
* @group matrix-testing-exclude-server-4.4-driver-4.2
18+
* @group matrix-testing-exclude-server-5.0-driver-4.0
19+
* @group matrix-testing-exclude-server-5.0-driver-4.2
2020
*/
2121
class MapReduceFunctionalTest extends FunctionalTestCase
2222
{

tests/Operation/ModifyCollectionFunctionalTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
class ModifyCollectionFunctionalTest extends FunctionalTestCase
1010
{
1111
/**
12-
* @group matrix-testing-server-4.2-driver-4.0-topology-sharded_cluster
13-
* @group matrix-testing-server-4.4-driver-4.0-topology-sharded_cluster
14-
* @group matrix-testing-server-5.0-driver-4.0-topology-sharded_cluster
12+
* @group matrix-testing-exclude-server-4.2-driver-4.0-topology-sharded_cluster
13+
* @group matrix-testing-exclude-server-4.4-driver-4.0-topology-sharded_cluster
14+
* @group matrix-testing-exclude-server-5.0-driver-4.0-topology-sharded_cluster
1515
*/
1616
public function testCollMod()
1717
{

tests/Operation/WatchFunctionalTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
use function version_compare;
3232

3333
/**
34-
* @group matrix-testing-server-4.2-driver-4.0-topology-sharded_cluster
35-
* @group matrix-testing-server-4.4-driver-4.0-topology-sharded_cluster
36-
* @group matrix-testing-server-5.0-driver-4.0-topology-sharded_cluster
34+
* @group matrix-testing-exclude-server-4.2-driver-4.0-topology-sharded_cluster
35+
* @group matrix-testing-exclude-server-4.4-driver-4.0-topology-sharded_cluster
36+
* @group matrix-testing-exclude-server-5.0-driver-4.0-topology-sharded_cluster
3737
*/
3838
class WatchFunctionalTest extends FunctionalTestCase
3939
{

tests/SpecTests/RetryableReadsSpecTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public static function assertCommandMatches(stdClass $expected, stdClass $actual
4242
* Execute an individual test case from the specification.
4343
*
4444
* @dataProvider provideTests
45-
* @group matrix-testing-server-4.4-driver-4.2
46-
* @group matrix-testing-server-5.0-driver-4.2
45+
* @group matrix-testing-exclude-server-4.4-driver-4.2
46+
* @group matrix-testing-exclude-server-5.0-driver-4.2
4747
*
4848
* @param stdClass $test Individual "tests[]" document
4949
* @param array $runOn Top-level "runOn" array with server requirements

0 commit comments

Comments
 (0)