Skip to content

Commit 1fabf41

Browse files
committed
Fix Manager extends test, which previously duplicated Query
1 parent 97a26a1 commit 1fabf41

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/manager/manager_error-001.phpt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
--TEST--
2-
MongoDB\Driver\Query cannot be extended
3-
--SKIPIF--
4-
<?php require __DIR__ . "/../utils/basic-skipif.inc"?>
2+
MongoDB\Driver\Manager cannot be extended
53
--FILE--
64
<?php
7-
require_once __DIR__ . "/../utils/basic.inc";
85

9-
class MyQuery extends MongoDB\Driver\Query {}
6+
class MyManager extends MongoDB\Driver\Manager {}
107

118
?>
129
===DONE===
1310
<?php exit(0); ?>
1411
--EXPECTF--
15-
Fatal error: Class MyQuery may not inherit from final class (MongoDB\Driver\Query) in %s on line %d
12+
Fatal error: Class MyManager may not inherit from final class (MongoDB\Driver\Manager) in %s on line %d

0 commit comments

Comments
 (0)