-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
tests/Drupal/Semantics/UnsilencedDeprecationUnitTest.inc.fixed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Test data for the relaxed version of FunctionUnsilencedDeprecationSniff coding standard. | ||
*/ | ||
|
||
// No second parameter, so cannot fail it, both silenced and unsilenced. | ||
@trigger_error('CommentTestBase is deprecated in drupal 8.4.0'); | ||
trigger_error('CommentTestBase is deprecated in drupal 8.4.0'); | ||
|
||
// Not E_USER_DEPRECATED, so cannot fail it, both silenced and unsilenced. | ||
@trigger_error('CommentTestBase is deprecated in drupal 8.4.0', E_USER_SOMETHING_ELSE); | ||
trigger_error('CommentTestBase is deprecated in drupal 8.4.0', E_USER_SOMETHING_ELSE); | ||
|
||
// E_USER_DEPRECATED, so silenced is fine... | ||
@trigger_error('CommentTestBase is deprecated in drupal 8.4.0', E_USER_DEPRECATED); | ||
// ... but unsilenced fails. | ||
@trigger_error('CommentTestBase is deprecated in drupal 8.4.0', E_USER_DEPRECATED); |