diff --git a/tests/Core/Ruleset/ProcessRuleShouldProcessElementTest.php b/tests/Core/Ruleset/ProcessRuleShouldProcessElementTest.php
index 7de34c1210..c6c9e2160b 100644
--- a/tests/Core/Ruleset/ProcessRuleShouldProcessElementTest.php
+++ b/tests/Core/Ruleset/ProcessRuleShouldProcessElementTest.php
@@ -64,6 +64,9 @@ public function testShouldProcessSeverityCsonly()
$key = 'severity';
// Verify that the non-selective severity directive IS applied.
+ $sniffCode = 'Internal.NoCodeFound';
+ $this->assertRulesetPropertySame(0, $sniffCode, $key);
+
$sniffCode = 'PSR1.Files.SideEffects';
$this->assertRulesetPropertySame(3, $sniffCode, $key);
@@ -215,6 +218,9 @@ public function testShouldProcessMessageCbfonly()
$key = 'message';
// Verify that the non-selective message directive IS applied.
+ $sniffCode = 'Internal.NoCodeFound';
+ $this->assertRulesetPropertySame("We don't to be notified if files don't contain code", $sniffCode, $key);
+
$sniffCode = 'PSR1.Files.SideEffects';
$this->assertRulesetPropertySame('A different warning message', $sniffCode, $key);
diff --git a/tests/Core/Ruleset/ProcessRuleShouldProcessElementTest.xml b/tests/Core/Ruleset/ProcessRuleShouldProcessElementTest.xml
index 73a8116110..3fbfd6d55b 100644
--- a/tests/Core/Ruleset/ProcessRuleShouldProcessElementTest.xml
+++ b/tests/Core/Ruleset/ProcessRuleShouldProcessElementTest.xml
@@ -6,6 +6,11 @@
# Neither set. #
################
-->
+
+ 0
+ We don't to be notified if files don't contain code
+
+
3
warning