Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / Regression / Trac / 578 / Issue578Test.php
diff --git a/vendor/phpunit/phpunit/tests/Regression/Trac/578/Issue578Test.php b/vendor/phpunit/phpunit/tests/Regression/Trac/578/Issue578Test.php
new file mode 100644 (file)
index 0000000..262d97f
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+class Issue578Test extends PHPUnit_Framework_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');
+    }
+}