@@ -71,20 +71,20 @@ public function testNoAuthorizedServices()
71
71
curl_setopt ($ connection , CURLOPT_RETURNTRANSFER , 1 );
72
72
$ responseContent = curl_exec ($ connection );
73
73
$ this ->assertEquals (curl_getinfo ($ connection , CURLINFO_HTTP_CODE ), 401 );
74
- $ this ->assertContains ("The consumer isn't authorized to access %resources. " , $ responseContent );
74
+ $ this ->assertStringContainsString ("The consumer isn't authorized to access %resources. " , $ responseContent );
75
75
}
76
76
77
77
public function testInvalidWsdlUrlNoServices ()
78
78
{
79
79
$ responseContent = $ this ->_getWsdlContent ($ this ->_getBaseWsdlUrl ());
80
- $ this ->assertContains ("Requested services are missing. " , $ responseContent );
80
+ $ this ->assertStringContainsString ("Requested services are missing. " , $ responseContent );
81
81
}
82
82
83
83
public function testInvalidWsdlUrlInvalidParameter ()
84
84
{
85
85
$ wsdlUrl = $ this ->_getBaseWsdlUrl () . '&invalid ' ;
86
86
$ responseContent = $ this ->_getWsdlContent ($ wsdlUrl );
87
- $ this ->assertContains ("Not allowed parameters " , $ responseContent );
87
+ $ this ->assertStringContainsString ("Not allowed parameters " , $ responseContent );
88
88
}
89
89
90
90
/**
@@ -145,7 +145,7 @@ protected function _checkTypesDeclaration($wsdlContent)
145
145
<xsd:schema targetNamespace=" {$ this ->_soapUrl }">
146
146
TYPES_SECTION_DECLARATION ;
147
147
// @codingStandardsIgnoreEnd
148
- $ this ->assertContains (
148
+ $ this ->assertStringContainsString (
149
149
$ this ->_convertXmlToString ($ typesSectionDeclaration ),
150
150
$ wsdlContent ,
151
151
'Types section declaration is invalid '
@@ -168,7 +168,7 @@ protected function _checkElementsDeclaration($wsdlContent)
168
168
<xsd:element name="testModule5AllSoapAndRestV1ItemRequest" type="tns:TestModule5AllSoapAndRestV1ItemRequest"/>
169
169
REQUEST_ELEMENT ;
170
170
}
171
- $ this ->assertContains (
171
+ $ this ->assertStringContainsString (
172
172
$ this ->_convertXmlToString ($ requestElement ),
173
173
$ wsdlContent ,
174
174
'Request element declaration in types section is invalid '
@@ -183,7 +183,7 @@ protected function _checkElementsDeclaration($wsdlContent)
183
183
<xsd:element name="testModule5AllSoapAndRestV1ItemResponse" type="tns:TestModule5AllSoapAndRestV1ItemResponse"/>
184
184
RESPONSE_ELEMENT ;
185
185
}
186
- $ this ->assertContains (
186
+ $ this ->assertStringContainsString (
187
187
$ this ->_convertXmlToString ($ responseElement ),
188
188
$ wsdlContent ,
189
189
'Response element declaration in types section is invalid '
@@ -247,7 +247,7 @@ protected function _checkComplexTypesDeclaration($wsdlContent)
247
247
REQUEST_TYPE ;
248
248
}
249
249
// @codingStandardsIgnoreEnd
250
- $ this ->assertContains (
250
+ $ this ->assertStringContainsString (
251
251
$ this ->_convertXmlToString ($ requestType ),
252
252
$ wsdlContent ,
253
253
'Request type declaration in types section is invalid '
@@ -304,7 +304,7 @@ protected function _checkComplexTypesDeclaration($wsdlContent)
304
304
RESPONSE_TYPE ;
305
305
}
306
306
// @codingStandardsIgnoreEnd
307
- $ this ->assertContains (
307
+ $ this ->assertStringContainsString (
308
308
$ this ->_convertXmlToString ($ responseType ),
309
309
$ wsdlContent ,
310
310
'Response type declaration in types section is invalid '
@@ -472,7 +472,7 @@ protected function _checkReferencedTypeDeclaration($wsdlContent)
472
472
RESPONSE_TYPE ;
473
473
}
474
474
// @codingStandardsIgnoreEnd
475
- $ this ->assertContains (
475
+ $ this ->assertStringContainsString (
476
476
$ this ->_convertXmlToString ($ referencedType ),
477
477
$ wsdlContent ,
478
478
'Declaration of complex type generated from Data Object, which is referenced in response, is invalid '
@@ -495,7 +495,7 @@ protected function _checkPortTypeDeclaration($wsdlContent)
495
495
<portType name="testModule5AllSoapAndRestV1PortType">
496
496
FIRST_PORT_TYPE ;
497
497
}
498
- $ this ->assertContains (
498
+ $ this ->assertStringContainsString (
499
499
$ this ->_convertXmlToString ($ firstPortType ),
500
500
$ wsdlContent ,
501
501
'Port type declaration is missing or invalid '
@@ -505,7 +505,7 @@ protected function _checkPortTypeDeclaration($wsdlContent)
505
505
$ secondPortType = <<< SECOND_PORT_TYPE
506
506
<portType name="testModule5AllSoapAndRestV2PortType">
507
507
SECOND_PORT_TYPE ;
508
- $ this ->assertContains (
508
+ $ this ->assertStringContainsString (
509
509
$ this ->_convertXmlToString ($ secondPortType ),
510
510
$ wsdlContent ,
511
511
'Port type declaration is missing or invalid '
@@ -539,7 +539,7 @@ protected function _checkPortTypeDeclaration($wsdlContent)
539
539
</operation>
540
540
OPERATION_DECLARATION ;
541
541
}
542
- $ this ->assertContains (
542
+ $ this ->assertStringContainsString (
543
543
$ this ->_convertXmlToString ($ operationDeclaration ),
544
544
$ wsdlContent ,
545
545
'Operation in port type is invalid '
@@ -564,7 +564,7 @@ protected function _checkBindingDeclaration($wsdlContent)
564
564
<soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
565
565
FIRST_BINDING ;
566
566
}
567
- $ this ->assertContains (
567
+ $ this ->assertStringContainsString (
568
568
$ this ->_convertXmlToString ($ firstBinding ),
569
569
$ wsdlContent ,
570
570
'Binding declaration is missing or invalid '
@@ -575,7 +575,7 @@ protected function _checkBindingDeclaration($wsdlContent)
575
575
<binding name="testModule5AllSoapAndRestV2Binding" type="tns:testModule5AllSoapAndRestV2PortType">
576
576
<soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
577
577
SECOND_BINDING ;
578
- $ this ->assertContains (
578
+ $ this ->assertStringContainsString (
579
579
$ this ->_convertXmlToString ($ secondBinding ),
580
580
$ wsdlContent ,
581
581
'Binding declaration is missing or invalid '
@@ -629,7 +629,7 @@ protected function _checkBindingDeclaration($wsdlContent)
629
629
</operation>
630
630
OPERATION_DECLARATION ;
631
631
}
632
- $ this ->assertContains (
632
+ $ this ->assertStringContainsString (
633
633
$ this ->_convertXmlToString ($ operationDeclaration ),
634
634
$ wsdlContent ,
635
635
'Operation in binding is invalid '
@@ -662,7 +662,7 @@ protected function _checkServiceDeclaration($wsdlContent)
662
662
FIRST_SERVICE_DECLARATION ;
663
663
}
664
664
// @codingStandardsIgnoreEnd
665
- $ this ->assertContains (
665
+ $ this ->assertStringContainsString (
666
666
$ this ->_convertXmlToString ($ firstServiceDeclaration ),
667
667
$ wsdlContent ,
668
668
'First service section is invalid '
@@ -678,7 +678,7 @@ protected function _checkServiceDeclaration($wsdlContent)
678
678
</service>
679
679
SECOND_SERVICE_DECLARATION ;
680
680
// @codingStandardsIgnoreEnd
681
- $ this ->assertContains (
681
+ $ this ->assertStringContainsString (
682
682
$ this ->_convertXmlToString ($ secondServiceDeclaration ),
683
683
$ wsdlContent ,
684
684
'Second service section is invalid '
@@ -701,7 +701,7 @@ protected function _checkMessagesDeclaration($wsdlContent)
701
701
<part name="messageParameters" element="tns:testModule5AllSoapAndRestV2ItemResponse"/>
702
702
</message>
703
703
MESSAGES_DECLARATION ;
704
- $ this ->assertContains (
704
+ $ this ->assertStringContainsString (
705
705
$ this ->_convertXmlToString ($ itemMessagesDeclaration ),
706
706
$ wsdlContent ,
707
707
'Messages section for "item" operation is invalid '
@@ -714,7 +714,7 @@ protected function _checkMessagesDeclaration($wsdlContent)
714
714
<part name="messageParameters" element="tns:testModule5AllSoapAndRestV2ItemsResponse"/>
715
715
</message>
716
716
MESSAGES_DECLARATION ;
717
- $ this ->assertContains (
717
+ $ this ->assertStringContainsString (
718
718
$ this ->_convertXmlToString ($ itemsMessagesDeclaration ),
719
719
$ wsdlContent ,
720
720
'Messages section for "items" operation is invalid '
@@ -742,7 +742,7 @@ protected function _checkFaultsPortTypeSection($wsdlContent)
742
742
$ faultsInPortType = <<< FAULT_IN_PORT_TYPE
743
743
<fault name="GenericFault" message="tns:GenericFault"/>
744
744
FAULT_IN_PORT_TYPE ;
745
- $ this ->assertContains (
745
+ $ this ->assertStringContainsString (
746
746
$ this ->_convertXmlToString ($ faultsInPortType ),
747
747
$ wsdlContent ,
748
748
'SOAP Fault section in port type section is invalid '
@@ -757,7 +757,7 @@ protected function _checkFaultsBindingSection($wsdlContent)
757
757
$ faultsInBinding = <<< FAULT_IN_BINDING
758
758
<fault name="GenericFault"/>
759
759
FAULT_IN_BINDING ;
760
- $ this ->assertContains (
760
+ $ this ->assertStringContainsString (
761
761
$ this ->_convertXmlToString ($ faultsInBinding ),
762
762
$ wsdlContent ,
763
763
'SOAP Fault section in binding section is invalid '
@@ -774,7 +774,7 @@ protected function _checkFaultsMessagesSection($wsdlContent)
774
774
<part name="messageParameters" element="tns:GenericFault"/>
775
775
</message>
776
776
GENERIC_FAULT_IN_MESSAGES ;
777
- $ this ->assertContains (
777
+ $ this ->assertStringContainsString (
778
778
$ this ->_convertXmlToString ($ genericFaultMessage ),
779
779
$ wsdlContent ,
780
780
'Generic SOAP Fault declaration in messages section is invalid '
@@ -787,7 +787,7 @@ protected function _checkFaultsMessagesSection($wsdlContent)
787
787
*/
788
788
protected function _checkFaultsComplexTypeSection ($ wsdlContent )
789
789
{
790
- $ this ->assertContains (
790
+ $ this ->assertStringContainsString (
791
791
$ this ->_convertXmlToString ('<xsd:element name="GenericFault" type="tns:GenericFault"/> ' ),
792
792
$ wsdlContent ,
793
793
'Default SOAP Fault complex type element declaration is invalid '
@@ -824,7 +824,7 @@ protected function _checkFaultsComplexTypeSection($wsdlContent)
824
824
</xsd:sequence>
825
825
</xsd:complexType>
826
826
GENERIC_FAULT_COMPLEX_TYPE ;
827
- $ this ->assertContains (
827
+ $ this ->assertStringContainsString (
828
828
$ this ->_convertXmlToString ($ genericFaultType ),
829
829
$ wsdlContent ,
830
830
'Default SOAP Fault complex types declaration is invalid '
@@ -852,7 +852,7 @@ protected function _checkFaultsComplexTypeSection($wsdlContent)
852
852
</xsd:sequence>
853
853
</xsd:complexType>
854
854
PARAM_COMPLEX_TYPE ;
855
- $ this ->assertContains (
855
+ $ this ->assertStringContainsString (
856
856
$ this ->_convertXmlToString ($ detailsParameterType ),
857
857
$ wsdlContent ,
858
858
'Details parameter complex types declaration is invalid. '
@@ -907,7 +907,7 @@ protected function _checkFaultsComplexTypeSection($wsdlContent)
907
907
WRAPPED_ERROR_COMPLEX_TYPE ;
908
908
}
909
909
// @codingStandardsIgnoreEnd
910
- $ this ->assertContains (
910
+ $ this ->assertStringContainsString (
911
911
$ this ->_convertXmlToString ($ detailsWrappedErrorType ),
912
912
$ wsdlContent ,
913
913
'Details wrapped error complex types declaration is invalid. '
@@ -930,7 +930,7 @@ protected function _checkFaultsComplexTypeSection($wsdlContent)
930
930
</xsd:complexType>
931
931
PARAMETERS_COMPLEX_TYPE ;
932
932
// @codingStandardsIgnoreEnd
933
- $ this ->assertContains (
933
+ $ this ->assertStringContainsString (
934
934
$ this ->_convertXmlToString ($ detailsParametersType ),
935
935
$ wsdlContent ,
936
936
'Details parameters (array of parameters) complex types declaration is invalid. '
@@ -974,7 +974,7 @@ protected function _checkFaultsComplexTypeSection($wsdlContent)
974
974
975
975
}
976
976
// @codingStandardsIgnoreEnd
977
- $ this ->assertContains (
977
+ $ this ->assertStringContainsString (
978
978
$ this ->_convertXmlToString ($ detailsWrappedErrorsType ),
979
979
$ wsdlContent ,
980
980
'Details wrapped errors (array of wrapped errors) complex types declaration is invalid. '
0 commit comments