@@ -2809,6 +2809,16 @@ public function testRequestMethodSuccessiveGetRequests()
2809
2809
$ test ->chainRequests ('GET ' , 'DELETE ' );
2810
2810
$ test ->chainRequests ('GET ' , 'HEAD ' );
2811
2811
$ test ->chainRequests ('GET ' , 'OPTIONS ' );
2812
+ $ test ->chainRequests ('GET ' , 'GET ' );
2813
+
2814
+ $ test = new Test ();
2815
+ $ test ->chainRequests ('GET ' , 'POST ' , array ('a ' => '1 ' ));
2816
+ $ test ->chainRequests ('GET ' , 'PUT ' , array ('b ' => '22 ' ));
2817
+ $ test ->chainRequests ('GET ' , 'PATCH ' , array ('c ' => '333 ' ));
2818
+ $ test ->chainRequests ('GET ' , 'DELETE ' , array ('d ' => '4444 ' ));
2819
+ $ test ->chainRequests ('GET ' , 'HEAD ' , array ('e ' => '55555 ' ));
2820
+ $ test ->chainRequests ('GET ' , 'OPTIONS ' , array ('f ' => '666666 ' ));
2821
+ $ test ->chainRequests ('GET ' , 'GET ' , array ('g ' => '7777777 ' ));
2812
2822
}
2813
2823
2814
2824
public function testRequestMethodSuccessivePostRequests ()
@@ -2820,6 +2830,16 @@ public function testRequestMethodSuccessivePostRequests()
2820
2830
$ test ->chainRequests ('POST ' , 'DELETE ' );
2821
2831
$ test ->chainRequests ('POST ' , 'HEAD ' );
2822
2832
$ test ->chainRequests ('POST ' , 'OPTIONS ' );
2833
+ $ test ->chainRequests ('POST ' , 'POST ' );
2834
+
2835
+ $ test = new Test ();
2836
+ $ test ->chainRequests ('POST ' , 'GET ' , array ('a ' => '1 ' ));
2837
+ $ test ->chainRequests ('POST ' , 'PUT ' , array ('b ' => '22 ' ));
2838
+ $ test ->chainRequests ('POST ' , 'PATCH ' , array ('c ' => '333 ' ));
2839
+ $ test ->chainRequests ('POST ' , 'DELETE ' , array ('d ' => '4444 ' ));
2840
+ $ test ->chainRequests ('POST ' , 'HEAD ' , array ('e ' => '55555 ' ));
2841
+ $ test ->chainRequests ('POST ' , 'OPTIONS ' , array ('f ' => '666666 ' ));
2842
+ $ test ->chainRequests ('POST ' , 'POST ' , array ('g ' => '7777777 ' ));
2823
2843
}
2824
2844
2825
2845
public function testRequestMethodSuccessivePutRequests ()
@@ -2831,6 +2851,16 @@ public function testRequestMethodSuccessivePutRequests()
2831
2851
$ test ->chainRequests ('PUT ' , 'DELETE ' );
2832
2852
$ test ->chainRequests ('PUT ' , 'HEAD ' );
2833
2853
$ test ->chainRequests ('PUT ' , 'OPTIONS ' );
2854
+ $ test ->chainRequests ('PUT ' , 'PUT ' );
2855
+
2856
+ $ test = new Test ();
2857
+ $ test ->chainRequests ('PUT ' , 'GET ' , array ('a ' => '1 ' ));
2858
+ $ test ->chainRequests ('PUT ' , 'POST ' , array ('b ' => '22 ' ));
2859
+ $ test ->chainRequests ('PUT ' , 'PATCH ' , array ('c ' => '333 ' ));
2860
+ $ test ->chainRequests ('PUT ' , 'DELETE ' , array ('d ' => '4444 ' ));
2861
+ $ test ->chainRequests ('PUT ' , 'HEAD ' , array ('e ' => '55555 ' ));
2862
+ $ test ->chainRequests ('PUT ' , 'OPTIONS ' , array ('f ' => '666666 ' ));
2863
+ $ test ->chainRequests ('PUT ' , 'PUT ' , array ('g ' => '7777777 ' ));
2834
2864
}
2835
2865
2836
2866
public function testRequestMethodSuccessivePatchRequests ()
@@ -2842,6 +2872,16 @@ public function testRequestMethodSuccessivePatchRequests()
2842
2872
$ test ->chainRequests ('PATCH ' , 'DELETE ' );
2843
2873
$ test ->chainRequests ('PATCH ' , 'HEAD ' );
2844
2874
$ test ->chainRequests ('PATCH ' , 'OPTIONS ' );
2875
+ $ test ->chainRequests ('PATCH ' , 'PATCH ' );
2876
+
2877
+ $ test = new Test ();
2878
+ $ test ->chainRequests ('PATCH ' , 'GET ' , array ('a ' => '1 ' ));
2879
+ $ test ->chainRequests ('PATCH ' , 'POST ' , array ('b ' => '22 ' ));
2880
+ $ test ->chainRequests ('PATCH ' , 'PUT ' , array ('c ' => '333 ' ));
2881
+ $ test ->chainRequests ('PATCH ' , 'DELETE ' , array ('d ' => '4444 ' ));
2882
+ $ test ->chainRequests ('PATCH ' , 'HEAD ' , array ('e ' => '55555 ' ));
2883
+ $ test ->chainRequests ('PATCH ' , 'OPTIONS ' , array ('f ' => '666666 ' ));
2884
+ $ test ->chainRequests ('PATCH ' , 'PATCH ' , array ('g ' => '7777777 ' ));
2845
2885
}
2846
2886
2847
2887
public function testRequestMethodSuccessiveDeleteRequests ()
@@ -2853,6 +2893,16 @@ public function testRequestMethodSuccessiveDeleteRequests()
2853
2893
$ test ->chainRequests ('DELETE ' , 'PATCH ' );
2854
2894
$ test ->chainRequests ('DELETE ' , 'HEAD ' );
2855
2895
$ test ->chainRequests ('DELETE ' , 'OPTIONS ' );
2896
+ $ test ->chainRequests ('DELETE ' , 'DELETE ' );
2897
+
2898
+ $ test = new Test ();
2899
+ $ test ->chainRequests ('DELETE ' , 'GET ' , array ('a ' => '1 ' ));
2900
+ $ test ->chainRequests ('DELETE ' , 'POST ' , array ('b ' => '22 ' ));
2901
+ $ test ->chainRequests ('DELETE ' , 'PUT ' , array ('c ' => '333 ' ));
2902
+ $ test ->chainRequests ('DELETE ' , 'PATCH ' , array ('d ' => '4444 ' ));
2903
+ $ test ->chainRequests ('DELETE ' , 'HEAD ' , array ('e ' => '55555 ' ));
2904
+ $ test ->chainRequests ('DELETE ' , 'OPTIONS ' , array ('f ' => '666666 ' ));
2905
+ $ test ->chainRequests ('DELETE ' , 'DELETE ' , array ('g ' => '7777777 ' ));
2856
2906
}
2857
2907
2858
2908
public function testRequestMethodSuccessiveHeadRequests ()
@@ -2864,6 +2914,16 @@ public function testRequestMethodSuccessiveHeadRequests()
2864
2914
$ test ->chainRequests ('HEAD ' , 'PATCH ' );
2865
2915
$ test ->chainRequests ('HEAD ' , 'DELETE ' );
2866
2916
$ test ->chainRequests ('HEAD ' , 'OPTIONS ' );
2917
+ $ test ->chainRequests ('HEAD ' , 'HEAD ' );
2918
+
2919
+ $ test = new Test ();
2920
+ $ test ->chainRequests ('HEAD ' , 'GET ' , array ('a ' => '1 ' ));
2921
+ $ test ->chainRequests ('HEAD ' , 'POST ' , array ('b ' => '22 ' ));
2922
+ $ test ->chainRequests ('HEAD ' , 'PUT ' , array ('c ' => '333 ' ));
2923
+ $ test ->chainRequests ('HEAD ' , 'PATCH ' , array ('d ' => '4444 ' ));
2924
+ $ test ->chainRequests ('HEAD ' , 'DELETE ' , array ('e ' => '55555 ' ));
2925
+ $ test ->chainRequests ('HEAD ' , 'OPTIONS ' , array ('f ' => '666666 ' ));
2926
+ $ test ->chainRequests ('HEAD ' , 'HEAD ' , array ('g ' => '7777777 ' ));
2867
2927
}
2868
2928
2869
2929
public function testRequestMethodSuccessiveOptionsRequests ()
@@ -2875,6 +2935,16 @@ public function testRequestMethodSuccessiveOptionsRequests()
2875
2935
$ test ->chainRequests ('OPTIONS ' , 'PATCH ' );
2876
2936
$ test ->chainRequests ('OPTIONS ' , 'DELETE ' );
2877
2937
$ test ->chainRequests ('OPTIONS ' , 'HEAD ' );
2938
+ $ test ->chainRequests ('OPTIONS ' , 'OPTIONS ' );
2939
+
2940
+ $ test = new Test ();
2941
+ $ test ->chainRequests ('OPTIONS ' , 'GET ' , array ('a ' => '1 ' ));
2942
+ $ test ->chainRequests ('OPTIONS ' , 'POST ' , array ('b ' => '22 ' ));
2943
+ $ test ->chainRequests ('OPTIONS ' , 'PUT ' , array ('c ' => '333 ' ));
2944
+ $ test ->chainRequests ('OPTIONS ' , 'PATCH ' , array ('d ' => '4444 ' ));
2945
+ $ test ->chainRequests ('OPTIONS ' , 'DELETE ' , array ('e ' => '55555 ' ));
2946
+ $ test ->chainRequests ('OPTIONS ' , 'HEAD ' , array ('f ' => '666666 ' ));
2947
+ $ test ->chainRequests ('OPTIONS ' , 'OPTIONS ' , array ('g ' => '7777777 ' ));
2878
2948
}
2879
2949
2880
2950
public function testMemoryLeak ()
0 commit comments