/vendor/phpunit/phpunit/tests/Regression/Trac/578/Issue578Test.php

https://bitbucket.org/alan_cordova/api-sb-map · PHP · 20 lines · 18 code · 2 blank · 0 comment · 0 complexity · d07f31cc5c4455fc2c6dc138d93e6a73 MD5 · raw file

  1. <?php
  2. class Issue578Test extends PHPUnit_Framework_TestCase
  3. {
  4. public function testNoticesDoublePrintStackTrace()
  5. {
  6. $this->iniSet('error_reporting', E_ALL | E_NOTICE);
  7. trigger_error('Stack Trace Test Notice', E_NOTICE);
  8. }
  9. public function testWarningsDoublePrintStackTrace()
  10. {
  11. $this->iniSet('error_reporting', E_ALL | E_NOTICE);
  12. trigger_error('Stack Trace Test Notice', E_WARNING);
  13. }
  14. public function testUnexpectedExceptionsPrintsCorrectly()
  15. {
  16. throw new Exception('Double printed exception');
  17. }
  18. }