init
This commit is contained in:
22
vendor/phpunit/phpunit/tests/Regression/Trac/578/Issue578Test.php
vendored
Normal file
22
vendor/phpunit/phpunit/tests/Regression/Trac/578/Issue578Test.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class Issue578Test extends TestCase
|
||||
{
|
||||
public function testNoticesDoublePrintStackTrace()
|
||||
{
|
||||
$this->iniSet('error_reporting', E_ALL | E_NOTICE);
|
||||
trigger_error('Stack Trace Test Notice', E_NOTICE);
|
||||
}
|
||||
|
||||
public function testWarningsDoublePrintStackTrace()
|
||||
{
|
||||
$this->iniSet('error_reporting', E_ALL | E_NOTICE);
|
||||
trigger_error('Stack Trace Test Notice', E_WARNING);
|
||||
}
|
||||
|
||||
public function testUnexpectedExceptionsPrintsCorrectly()
|
||||
{
|
||||
throw new Exception('Double printed exception');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user