diff --git a/include/tnef_decoder.php b/include/tnef_decoder.php
index fdcdba818993f5cefca49ed22aa6ff4729ce1266..91a5e59fe562c036f396a57be78f835065834aec 100644
--- a/include/tnef_decoder.php
+++ b/include/tnef_decoder.php
@@ -236,7 +236,7 @@ class TnefAttribute {
     const ReceivedRepresentingSimpleDisplayName = 0x4034;
     const CreatorSimpleDisplayName = 0x4038;
     const LastModifierSimpleDisplayName = 0x4039;
-    const ContentFilterSpmnConfidenceLevel = 0x4076;
+    const ContentFilterSpamConfidenceLevel = 0x4076;
     const MessageEditorFormat = 0x5909;
 
     static function getName($code) {
diff --git a/setup/test/tests/stubs.php b/setup/test/tests/stubs.php
index 591700ec50f0ef88f208b141c0347e170ae662c9..1f82fa1be9cb989a60c64d3b13a2d5707afd264f 100644
--- a/setup/test/tests/stubs.php
+++ b/setup/test/tests/stubs.php
@@ -28,6 +28,7 @@ class mysqli_stmt {
 
 class ReflectionClass {
     function getMethods() {}
+    function getConstants() {}
 }
 
 class DomNode {
@@ -83,4 +84,8 @@ class DateTimeZone {
     static function listIdentifiers() {}
 }
 
+class finfo {
+    function file() {}
+    function buffer() {}
+}
 ?>