@@ -514,12 +514,12 @@ private function setHeaderLink(array $linkEntries)
514514 {
515515 $ values = [];
516516 foreach ($ linkEntries as $ linkEntry ) {
517- \PHPUnit_Framework_Assert ::assertArrayHasKey (
517+ \PHPUnit \ Framework \Assert ::assertArrayHasKey (
518518 'uri ' ,
519519 $ linkEntry ,
520520 'linkEntry should contain property "uri" '
521521 );
522- \PHPUnit_Framework_Assert ::assertArrayHasKey (
522+ \PHPUnit \ Framework \Assert ::assertArrayHasKey (
523523 'link-param ' ,
524524 $ linkEntry ,
525525 'linkEntry should contain property "link-param" '
@@ -725,11 +725,11 @@ private function checkFileBeforeUpload($file)
725725 public function seeResponseIsJson ()
726726 {
727727 $ responseContent = $ this ->connectionModule ->_getResponseContent ();
728- \PHPUnit_Framework_Assert ::assertNotEquals ('' , $ responseContent , 'response is empty ' );
728+ \PHPUnit \ Framework \Assert ::assertNotEquals ('' , $ responseContent , 'response is empty ' );
729729 json_decode ($ responseContent );
730730 $ errorCode = json_last_error ();
731731 $ errorMessage = json_last_error_msg ();
732- \PHPUnit_Framework_Assert ::assertEquals (
732+ \PHPUnit \ Framework \Assert ::assertEquals (
733733 JSON_ERROR_NONE ,
734734 $ errorCode ,
735735 sprintf (
@@ -790,7 +790,7 @@ public function dontSeeResponseContains($text)
790790 */
791791 public function seeResponseContainsJson ($ json = [])
792792 {
793- \PHPUnit_Framework_Assert ::assertThat (
793+ \PHPUnit \ Framework \Assert ::assertThat (
794794 $ this ->connectionModule ->_getResponseContent (),
795795 new JsonContains ($ json )
796796 );
@@ -1087,7 +1087,7 @@ public function seeResponseMatchesJsonType(array $jsonType, $jsonPath = null)
10871087 $ jsonArray = $ jsonArray ->filterByJsonPath ($ jsonPath );
10881088 }
10891089
1090- \PHPUnit_Framework_Assert ::assertThat ($ jsonArray , new JsonTypeConstraint ($ jsonType ));
1090+ \PHPUnit \ Framework \Assert ::assertThat ($ jsonArray , new JsonTypeConstraint ($ jsonType ));
10911091 }
10921092
10931093 /**
@@ -1106,7 +1106,7 @@ public function dontSeeResponseMatchesJsonType($jsonType, $jsonPath = null)
11061106 $ jsonArray = $ jsonArray ->filterByJsonPath ($ jsonPath );
11071107 }
11081108
1109- \PHPUnit_Framework_Assert ::assertThat ($ jsonArray , new JsonTypeConstraint ($ jsonType , false ));
1109+ \PHPUnit \ Framework \Assert ::assertThat ($ jsonArray , new JsonTypeConstraint ($ jsonType , false ));
11101110 }
11111111
11121112 /**
@@ -1180,7 +1180,7 @@ public function seeResponseIsXml()
11801180 libxml_clear_errors ();
11811181 }
11821182 libxml_use_internal_errors (false );
1183- \PHPUnit_Framework_Assert ::assertNotSame (
1183+ \PHPUnit \ Framework \Assert ::assertNotSame (
11841184 false ,
11851185 $ doc ,
11861186 "xml decoding error # $ num with message \"$ title \", see http://www.xmlsoft.org/html/libxml-xmlerror.html "
@@ -1262,7 +1262,7 @@ public function grabAttributeFromXmlElement($cssOrXPath, $attribute)
12621262 */
12631263 public function seeXmlResponseEquals ($ xml )
12641264 {
1265- \PHPUnit_Framework_Assert ::assertXmlStringEqualsXmlString ($ this ->connectionModule ->_getResponseContent (), $ xml );
1265+ \PHPUnit \ Framework \Assert ::assertXmlStringEqualsXmlString ($ this ->connectionModule ->getResponseContent (), $ xml );
12661266 }
12671267
12681268
@@ -1277,7 +1277,7 @@ public function seeXmlResponseEquals($xml)
12771277 */
12781278 public function dontSeeXmlResponseEquals ($ xml )
12791279 {
1280- \PHPUnit_Framework_Assert ::assertXmlStringNotEqualsXmlString (
1280+ \PHPUnit \ Framework \Assert ::assertXmlStringNotEqualsXmlString (
12811281 $ this ->connectionModule ->_getResponseContent (),
12821282 $ xml
12831283 );
0 commit comments