dis-bench / src /php /php-src /Zend /tests /fibers /fiber-error-construct.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
272 Bytes
--TEST--
FiberError cannot be constructed in user code
--FILE--
<?php
try {
new FiberError;
} catch (Error $exception) {
echo $exception->getMessage(), "\n";
}
?>
--EXPECT--
The "FiberError" class is reserved for internal use and cannot be manually instantiated