FunctionResolveTestThenShouldNotReportUnhandled.phpt 314 B

1234567891011121314151617
  1. --TEST--
  2. Calling resolve() and then then() should not report unhandled rejection
  3. --INI--
  4. # suppress legacy PHPUnit 7 warning for Xdebug 3
  5. xdebug.default_enable=
  6. --FILE--
  7. <?php
  8. use function React\Promise\resolve;
  9. require __DIR__ . '/../vendor/autoload.php';
  10. resolve(42)->then('var_dump');
  11. ?>
  12. --EXPECT--
  13. int(42)