Once expectError() is used, errors triggered before assertError()s are not catched, and the assertErrors() fail. But expectError() still works fine.
Output of attached test is :
trigger_error.test.php
E_USER_NOTICE: First error triggered in /usr/local/www/noparking/opentime/trigger_error.test.php on line 7
E_USER_NOTICE: Second error triggered in /usr/local/www/noparking/opentime/trigger_error.test.php on line 11
Exception 1!
Unexpected PHP error [Second error triggered] severity [1024] in [/usr/local/www/noparking/opentime/trigger_error.test.php line 11]
in test_assert_error
in test_trigger_error
1) Expected error not found at [/usr/local/www/noparking/opentime/trigger_error.test.php line 12]
in test_assert_error
in test_trigger_error
FAILURES!!!
Test cases run: 1/1, Passes: 1, Failures: 1, Exceptions: 1
Example of expectError() breaking subsequent assertErrors()s