Files
mongo-php-driver/tests/writeError/writeerror_error-001.phpt
Andreas Braun b27fa4d019 PHPC-1965 Re-enable PHP 8.1 build on GH Actions (#1258)
* Re-enable PHP 8.1 build on GH Actions

* Work around different error wording in PHP 8.1

* Limit failing tests to PHP < 8.1

* Add tests for PHPC-1839 for PHP >= 8.1
2021-09-07 08:18:08 +02:00

13 lines
265 B
PHP

--TEST--
MongoDB\Driver\WriteError cannot be extended
--FILE--
<?php
class MyWriteError extends MongoDB\Driver\WriteError {}
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
Fatal error: Class MyWriteError %s final class %SMongoDB\Driver\WriteError%S in %s on line %d