File tree Expand file tree Collapse file tree 9 files changed +135
-0
lines changed Expand file tree Collapse file tree 9 files changed +135
-0
lines changed Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ MongoDB\Driver\BulkWrite cannot be extended
3
+ --SKIPIF--
4
+ <?php require __DIR__ . "/../utils/basic-skipif.inc " ?>
5
+ --FILE--
6
+ <?php
7
+ require_once __DIR__ . "/../utils/basic.inc " ;
8
+
9
+ class MyBulkWrite extends MongoDB \Driver \BulkWrite {}
10
+
11
+ ?>
12
+ ===DONE===
13
+ <?php exit (0 ); ?>
14
+ --EXPECTF--
15
+ Fatal error: Class MyBulkWrite may not inherit from final class (MongoDB\Driver\BulkWrite) in %s on line %d
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ MongoDB\Driver\Cursor cannot be extended
3
+ --SKIPIF--
4
+ <?php require __DIR__ . "/../utils/basic-skipif.inc " ?>
5
+ --FILE--
6
+ <?php
7
+ require_once __DIR__ . "/../utils/basic.inc " ;
8
+
9
+ class MyCursor extends MongoDB \Driver \Cursor {}
10
+
11
+ ?>
12
+ ===DONE===
13
+ <?php exit (0 ); ?>
14
+ --EXPECTF--
15
+ Fatal error: Class MyCursor may not inherit from final class (MongoDB\Driver\Cursor) in %s on line %d
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ MongoDB\Driver\CursorId cannot be extended
3
+ --SKIPIF--
4
+ <?php require __DIR__ . "/../utils/basic-skipif.inc " ?>
5
+ --FILE--
6
+ <?php
7
+ require_once __DIR__ . "/../utils/basic.inc " ;
8
+
9
+ class MyCursorId extends MongoDB \Driver \CursorId {}
10
+
11
+ ?>
12
+ ===DONE===
13
+ <?php exit (0 ); ?>
14
+ --EXPECTF--
15
+ Fatal error: Class MyCursorId may not inherit from final class (MongoDB\Driver\CursorId) in %s on line %d
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ MongoDB\Driver\Query cannot be extended
3
+ --SKIPIF--
4
+ <?php require __DIR__ . "/../utils/basic-skipif.inc " ?>
5
+ --FILE--
6
+ <?php
7
+ require_once __DIR__ . "/../utils/basic.inc " ;
8
+
9
+ class MyQuery extends MongoDB \Driver \Query {}
10
+
11
+ ?>
12
+ ===DONE===
13
+ <?php exit (0 ); ?>
14
+ --EXPECTF--
15
+ Fatal error: Class MyQuery may not inherit from final class (MongoDB\Driver\Query) in %s on line %d
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ MongoDB\Driver\Query cannot be extended
3
+ --SKIPIF--
4
+ <?php require __DIR__ . "/../utils/basic-skipif.inc " ?>
5
+ --FILE--
6
+ <?php
7
+ require_once __DIR__ . "/../utils/basic.inc " ;
8
+
9
+ class MyQuery extends MongoDB \Driver \Query {}
10
+
11
+ ?>
12
+ ===DONE===
13
+ <?php exit (0 ); ?>
14
+ --EXPECTF--
15
+ Fatal error: Class MyQuery may not inherit from final class (MongoDB\Driver\Query) in %s on line %d
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ MongoDB\Driver\ReadConcern cannot be extended
3
+ --SKIPIF--
4
+ <?php require __DIR__ . "/../utils/basic-skipif.inc " ?>
5
+ --FILE--
6
+ <?php
7
+ require_once __DIR__ . "/../utils/basic.inc " ;
8
+
9
+ class MyReadConcern extends MongoDB \Driver \ReadConcern {}
10
+
11
+ ?>
12
+ ===DONE===
13
+ <?php exit (0 ); ?>
14
+ --EXPECTF--
15
+ Fatal error: Class MyReadConcern may not inherit from final class (MongoDB\Driver\ReadConcern) in %s on line %d
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ MongoDB\Driver\ReadPreference cannot be extended
3
+ --SKIPIF--
4
+ <?php require __DIR__ . "/../utils/basic-skipif.inc " ?>
5
+ --FILE--
6
+ <?php
7
+ require_once __DIR__ . "/../utils/basic.inc " ;
8
+
9
+ class MyReadPreference extends MongoDB \Driver \ReadPreference {}
10
+
11
+ ?>
12
+ ===DONE===
13
+ <?php exit (0 ); ?>
14
+ --EXPECTF--
15
+ Fatal error: Class MyReadPreference may not inherit from final class (MongoDB\Driver\ReadPreference) in %s on line %d
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ MongoDB\Driver\Server cannot be extended
3
+ --SKIPIF--
4
+ <?php require __DIR__ . "/../utils/basic-skipif.inc " ?>
5
+ --FILE--
6
+ <?php
7
+ require_once __DIR__ . "/../utils/basic.inc " ;
8
+
9
+ class MyServer extends MongoDB \Driver \Server {}
10
+
11
+ ?>
12
+ ===DONE===
13
+ <?php exit (0 ); ?>
14
+ --EXPECTF--
15
+ Fatal error: Class MyServer may not inherit from final class (MongoDB\Driver\Server) in %s on line %d
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ MongoDB\Driver\WriteConcern cannot be extended
3
+ --SKIPIF--
4
+ <?php require __DIR__ . "/../utils/basic-skipif.inc " ?>
5
+ --FILE--
6
+ <?php
7
+ require_once __DIR__ . "/../utils/basic.inc " ;
8
+
9
+ class MyWriteConcern extends MongoDB \Driver \WriteConcern {}
10
+
11
+ ?>
12
+ ===DONE===
13
+ <?php exit (0 ); ?>
14
+ --EXPECTF--
15
+ Fatal error: Class MyWriteConcern may not inherit from final class (MongoDB\Driver\WriteConcern) in %s on line %d
You can’t perform that action at this time.
0 commit comments