@@ -123,7 +123,7 @@ public function testBasket()
123123 // The element does exist, and must contain the basket XML, with optional XML header and
124124 // trailing newlines.
125125 $ this ->assertArrayHasKey ('BasketXML ' , $ data );
126- $ this ->assertContains ($ basketXml , $ data ['BasketXML ' ]);
126+ $ this ->assertStringContainsString ($ basketXml , $ data ['BasketXML ' ]);
127127 }
128128
129129 public function testBasketExtendItem ()
@@ -151,7 +151,7 @@ public function testBasketExtendItem()
151151 // The element does exist, and must contain the basket XML, with optional XML header and
152152 // trailing newlines.
153153 $ this ->assertArrayHasKey ('BasketXML ' , $ data );
154- $ this ->assertContains ($ basketXml , $ data ['BasketXML ' ]);
154+ $ this ->assertStringContainsString ($ basketXml , $ data ['BasketXML ' ]);
155155 }
156156
157157 public function testGetDataNoReferrerId ()
@@ -280,7 +280,7 @@ public function testBasketWithNoDiscount()
280280 // The element does exist, and must contain the basket XML, with optional XML header and
281281 // trailing newlines.
282282 $ this ->assertArrayHasKey ('BasketXML ' , $ data );
283- $ this ->assertNotContains ('<discount> ' , $ data ['BasketXML ' ]);
283+ $ this ->assertStringNotContainsString ('<discount> ' , $ data ['BasketXML ' ]);
284284 }
285285
286286 public function testMixedBasketWithSpecialChars ()
@@ -321,7 +321,7 @@ public function testMixedBasketWithSpecialChars()
321321 $ data = $ this ->request ->getData ();
322322
323323 $ this ->assertArrayHasKey ('BasketXML ' , $ data );
324- $ this ->assertContains ($ expected , $ data ['BasketXML ' ], 'Basket XML does not match the expected output ' );
324+ $ this ->assertStringContainsString ($ expected , $ data ['BasketXML ' ], 'Basket XML does not match the expected output ' );
325325 }
326326
327327 public function testNonXmlBasket ()
0 commit comments