@@ -768,7 +768,7 @@ public function testParseIncompleteQuestionThrows()
768
768
769
769
$ data = $ this ->convertTcpDumpToBinary ($ data );
770
770
771
- $ this ->setExpectedException ('InvalidArgumentException ' );
771
+ $ this ->expectException ('InvalidArgumentException ' );
772
772
$ this ->parser ->parseMessage ($ data );
773
773
}
774
774
@@ -780,7 +780,7 @@ public function testParseIncompleteQuestionLabelThrows()
780
780
781
781
$ data = $ this ->convertTcpDumpToBinary ($ data );
782
782
783
- $ this ->setExpectedException ('InvalidArgumentException ' );
783
+ $ this ->expectException ('InvalidArgumentException ' );
784
784
$ this ->parser ->parseMessage ($ data );
785
785
}
786
786
@@ -792,7 +792,7 @@ public function testParseIncompleteQuestionNameThrows()
792
792
793
793
$ data = $ this ->convertTcpDumpToBinary ($ data );
794
794
795
- $ this ->setExpectedException ('InvalidArgumentException ' );
795
+ $ this ->expectException ('InvalidArgumentException ' );
796
796
$ this ->parser ->parseMessage ($ data );
797
797
}
798
798
@@ -804,7 +804,7 @@ public function testParseIncompleteOffsetPointerInQuestionNameThrows()
804
804
805
805
$ data = $ this ->convertTcpDumpToBinary ($ data );
806
806
807
- $ this ->setExpectedException ('InvalidArgumentException ' );
807
+ $ this ->expectException ('InvalidArgumentException ' );
808
808
$ this ->parser ->parseMessage ($ data );
809
809
}
810
810
@@ -816,7 +816,7 @@ public function testParseInvalidOffsetPointerInQuestionNameThrows()
816
816
817
817
$ data = $ this ->convertTcpDumpToBinary ($ data );
818
818
819
- $ this ->setExpectedException ('InvalidArgumentException ' );
819
+ $ this ->expectException ('InvalidArgumentException ' );
820
820
$ this ->parser ->parseMessage ($ data );
821
821
}
822
822
@@ -828,7 +828,7 @@ public function testParseInvalidOffsetPointerToSameLabelInQuestionNameThrows()
828
828
829
829
$ data = $ this ->convertTcpDumpToBinary ($ data );
830
830
831
- $ this ->setExpectedException ('InvalidArgumentException ' );
831
+ $ this ->expectException ('InvalidArgumentException ' );
832
832
$ this ->parser ->parseMessage ($ data );
833
833
}
834
834
@@ -840,7 +840,7 @@ public function testParseInvalidOffsetPointerToPreviousLabelInQuestionNameThrows
840
840
841
841
$ data = $ this ->convertTcpDumpToBinary ($ data );
842
842
843
- $ this ->setExpectedException ('InvalidArgumentException ' );
843
+ $ this ->expectException ('InvalidArgumentException ' );
844
844
$ this ->parser ->parseMessage ($ data );
845
845
}
846
846
@@ -852,7 +852,7 @@ public function testParseInvalidOffsetPointerToStartOfMessageInQuestionNameThrow
852
852
853
853
$ data = $ this ->convertTcpDumpToBinary ($ data );
854
854
855
- $ this ->setExpectedException ('InvalidArgumentException ' );
855
+ $ this ->expectException ('InvalidArgumentException ' );
856
856
$ this ->parser ->parseMessage ($ data );
857
857
}
858
858
@@ -866,7 +866,7 @@ public function testParseIncompleteAnswerFieldsThrows()
866
866
867
867
$ data = $ this ->convertTcpDumpToBinary ($ data );
868
868
869
- $ this ->setExpectedException ('InvalidArgumentException ' );
869
+ $ this ->expectException ('InvalidArgumentException ' );
870
870
$ this ->parser ->parseMessage ($ data );
871
871
}
872
872
@@ -880,7 +880,7 @@ public function testParseMessageResponseWithIncompleteAuthorityRecordThrows()
880
880
881
881
$ data = $ this ->convertTcpDumpToBinary ($ data );
882
882
883
- $ this ->setExpectedException ('InvalidArgumentException ' );
883
+ $ this ->expectException ('InvalidArgumentException ' );
884
884
$ this ->parser ->parseMessage ($ data );
885
885
}
886
886
@@ -894,7 +894,7 @@ public function testParseMessageResponseWithIncompleteAdditionalRecordThrows()
894
894
895
895
$ data = $ this ->convertTcpDumpToBinary ($ data );
896
896
897
- $ this ->setExpectedException ('InvalidArgumentException ' );
897
+ $ this ->expectException ('InvalidArgumentException ' );
898
898
$ this ->parser ->parseMessage ($ data );
899
899
}
900
900
@@ -911,7 +911,7 @@ public function testParseIncompleteAnswerRecordDataThrows()
911
911
912
912
$ data = $ this ->convertTcpDumpToBinary ($ data );
913
913
914
- $ this ->setExpectedException ('InvalidArgumentException ' );
914
+ $ this ->expectException ('InvalidArgumentException ' );
915
915
$ this ->parser ->parseMessage ($ data );
916
916
}
917
917
@@ -923,7 +923,7 @@ public function testParseInvalidNSResponseWhereDomainNameIsMissing()
923
923
$ data .= "00 01 51 80 " ; // answer: ttl 86400
924
924
$ data .= "00 00 " ; // answer: rdlength 0
925
925
926
- $ this ->setExpectedException ('InvalidArgumentException ' );
926
+ $ this ->expectException ('InvalidArgumentException ' );
927
927
$ this ->parseAnswer ($ data );
928
928
}
929
929
@@ -935,7 +935,7 @@ public function testParseInvalidAResponseWhereIPIsMissing()
935
935
$ data .= "00 01 51 80 " ; // answer: ttl 86400
936
936
$ data .= "00 00 " ; // answer: rdlength 0
937
937
938
- $ this ->setExpectedException ('InvalidArgumentException ' );
938
+ $ this ->expectException ('InvalidArgumentException ' );
939
939
$ this ->parseAnswer ($ data );
940
940
}
941
941
@@ -947,7 +947,7 @@ public function testParseInvalidAAAAResponseWhereIPIsMissing()
947
947
$ data .= "00 01 51 80 " ; // answer: ttl 86400
948
948
$ data .= "00 00 " ; // answer: rdlength 0
949
949
950
- $ this ->setExpectedException ('InvalidArgumentException ' );
950
+ $ this ->expectException ('InvalidArgumentException ' );
951
951
$ this ->parseAnswer ($ data );
952
952
}
953
953
@@ -960,7 +960,7 @@ public function testParseInvalidTXTResponseWhereTxtChunkExceedsLimit()
960
960
$ data .= "00 06 " ; // answer: rdlength 6
961
961
$ data .= "06 68 65 6c 6c 6f 6f " ; // answer: rdata length 6: helloo
962
962
963
- $ this ->setExpectedException ('InvalidArgumentException ' );
963
+ $ this ->expectException ('InvalidArgumentException ' );
964
964
$ this ->parseAnswer ($ data );
965
965
}
966
966
@@ -973,7 +973,7 @@ public function testParseInvalidMXResponseWhereDomainNameIsIncomplete()
973
973
$ data .= "00 08 " ; // answer: rdlength 8
974
974
$ data .= "00 0a 05 68 65 6c 6c 6f " ; // answer: rdata priority 10: hello (missing label end)
975
975
976
- $ this ->setExpectedException ('InvalidArgumentException ' );
976
+ $ this ->expectException ('InvalidArgumentException ' );
977
977
$ this ->parseAnswer ($ data );
978
978
}
979
979
@@ -986,7 +986,7 @@ public function testParseInvalidMXResponseWhereDomainNameIsMissing()
986
986
$ data .= "00 02 " ; // answer: rdlength 2
987
987
$ data .= "00 0a " ; // answer: rdata priority 10
988
988
989
- $ this ->setExpectedException ('InvalidArgumentException ' );
989
+ $ this ->expectException ('InvalidArgumentException ' );
990
990
$ this ->parseAnswer ($ data );
991
991
}
992
992
@@ -999,7 +999,7 @@ public function testParseInvalidSRVResponseWhereDomainNameIsIncomplete()
999
999
$ data .= "00 0b " ; // answer: rdlength 11
1000
1000
$ data .= "00 0a 00 14 1F 90 04 74 65 73 74 " ; // answer: rdata priority 10, weight 20, port 8080 test (missing label end)
1001
1001
1002
- $ this ->setExpectedException ('InvalidArgumentException ' );
1002
+ $ this ->expectException ('InvalidArgumentException ' );
1003
1003
$ this ->parseAnswer ($ data );
1004
1004
}
1005
1005
@@ -1012,7 +1012,7 @@ public function testParseInvalidSRVResponseWhereDomainNameIsMissing()
1012
1012
$ data .= "00 06 " ; // answer: rdlength 6
1013
1013
$ data .= "00 0a 00 14 1F 90 " ; // answer: rdata priority 10, weight 20, port 8080
1014
1014
1015
- $ this ->setExpectedException ('InvalidArgumentException ' );
1015
+ $ this ->expectException ('InvalidArgumentException ' );
1016
1016
$ this ->parseAnswer ($ data );
1017
1017
}
1018
1018
@@ -1025,7 +1025,7 @@ public function testParseInvalidSSHFPResponseWhereRecordIsTooSmall()
1025
1025
$ data .= "00 02 " ; // answer: rdlength 2
1026
1026
$ data .= "01 01 " ; // answer: algorithm 1 (RSA), type 1 (SHA), missing fingerprint
1027
1027
1028
- $ this ->setExpectedException ('InvalidArgumentException ' );
1028
+ $ this ->expectException ('InvalidArgumentException ' );
1029
1029
$ this ->parseAnswer ($ data );
1030
1030
}
1031
1031
@@ -1038,7 +1038,7 @@ public function testParseInvalidOPTResponseWhereRecordIsTooSmall()
1038
1038
$ data .= "00 03 " ; // answer: rdlength 3
1039
1039
$ data .= "00 00 00 " ; // answer: type 0, length incomplete
1040
1040
1041
- $ this ->setExpectedException ('InvalidArgumentException ' );
1041
+ $ this ->expectException ('InvalidArgumentException ' );
1042
1042
$ this ->parseAnswer ($ data );
1043
1043
}
1044
1044
@@ -1051,7 +1051,7 @@ public function testParseInvalidOPTResponseWhereRecordLengthDoesNotMatchOptType(
1051
1051
$ data .= "00 07 " ; // answer: rdlength 7
1052
1052
$ data .= "00 0b 00 03 01 02 03 " ; // answer: type OPT_TCP_KEEPALIVE, length 3 instead of 2
1053
1053
1054
- $ this ->setExpectedException ('InvalidArgumentException ' );
1054
+ $ this ->expectException ('InvalidArgumentException ' );
1055
1055
$ this ->parseAnswer ($ data );
1056
1056
}
1057
1057
@@ -1065,7 +1065,7 @@ public function testParseInvalidSOAResponseWhereFlagsAreMissing()
1065
1065
$ data .= "02 6e 73 05 68 65 6c 6c 6f 00 " ; // answer: rdata ns.hello (mname)
1066
1066
$ data .= "01 65 05 68 65 6c 6c 6f 00 " ; // answer: rdata e.hello (rname)
1067
1067
1068
- $ this ->setExpectedException ('InvalidArgumentException ' );
1068
+ $ this ->expectException ('InvalidArgumentException ' );
1069
1069
$ this ->parseAnswer ($ data );
1070
1070
}
1071
1071
@@ -1077,7 +1077,7 @@ public function testParseInvalidCAAResponseEmtpyData()
1077
1077
$ data .= "00 01 51 80 " ; // answer: ttl 86400
1078
1078
$ data .= "00 00 " ; // answer: rdlength 0
1079
1079
1080
- $ this ->setExpectedException ('InvalidArgumentException ' );
1080
+ $ this ->expectException ('InvalidArgumentException ' );
1081
1081
$ this ->parseAnswer ($ data );
1082
1082
}
1083
1083
@@ -1090,7 +1090,7 @@ public function testParseInvalidCAAResponseMissingValue()
1090
1090
$ data .= "00 07 " ; // answer: rdlength 22
1091
1091
$ data .= "00 05 69 73 73 75 65 " ; // answer: rdata 0, issue
1092
1092
1093
- $ this ->setExpectedException ('InvalidArgumentException ' );
1093
+ $ this ->expectException ('InvalidArgumentException ' );
1094
1094
$ this ->parseAnswer ($ data );
1095
1095
}
1096
1096
@@ -1104,7 +1104,7 @@ public function testParseInvalidCAAResponseIncompleteTag()
1104
1104
$ data .= "00 ff 69 73 73 75 65 " ; // answer: rdata 0, issue (incomplete due to invalid tag length)
1105
1105
$ data .= "68 65 6c 6c 6f " ; // answer: hello
1106
1106
1107
- $ this ->setExpectedException ('InvalidArgumentException ' );
1107
+ $ this ->expectException ('InvalidArgumentException ' );
1108
1108
$ this ->parseAnswer ($ data );
1109
1109
}
1110
1110
0 commit comments