From 96c9bf80ccbbb6c74d1a514c1551cff883f7cae2 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 8 Apr 2012 16:55:45 +0200 Subject: [PATCH] Add test --- tests/Composer/Test/Util/ErrorHandlerTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/Composer/Test/Util/ErrorHandlerTest.php b/tests/Composer/Test/Util/ErrorHandlerTest.php index 015997191..7232606e2 100644 --- a/tests/Composer/Test/Util/ErrorHandlerTest.php +++ b/tests/Composer/Test/Util/ErrorHandlerTest.php @@ -46,4 +46,14 @@ class ErrorHandlerTest extends TestCase array_merge(array(), 'string'); } + + /** + * Test ErrorHandler handles warnings + */ + public function testErrorHandlerRespectsAtOperator() + { + ErrorHandler::register(); + + @trigger_error('test', E_USER_NOTICE); + } }