PageRenderTime 30ms CodeModel.GetById 24ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/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
 2class 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
10    public function testWarningsDoublePrintStackTrace()
11    {
12        $this->iniSet('error_reporting', E_ALL | E_NOTICE);
13        trigger_error('Stack Trace Test Notice', E_WARNING);
14    }
15
16    public function testUnexpectedExceptionsPrintsCorrectly()
17    {
18        throw new Exception('Double printed exception');
19    }
20}