@@ -113,7 +113,7 @@ private function getXPathForFile($filename)
113113 {
114114 $ dom = new \DOMDocument (1.0 );
115115 $ dom ->load ($ this ->getWorkingFilePath ($ filename ));
116- $ xpath = new \DOMXpath ($ dom );
116+ $ xpath = new \DOMXPath ($ dom );
117117
118118 return $ xpath ;
119119 }
@@ -209,7 +209,7 @@ public function iShouldSeeATableContainingTheFollowingRows(TableNode $table)
209209 public function iShouldSeeTheFollowing (PyStringNode $ string )
210210 {
211211 $ output = $ this ->getOutput ();
212- Assert::assertContains ($ string ->getRaw (), $ output );
212+ Assert::assertStringContainsString ($ string ->getRaw (), $ output );
213213 }
214214
215215 /**
@@ -218,7 +218,7 @@ public function iShouldSeeTheFollowing(PyStringNode $string)
218218 public function iShouldNotSeeTheFollowing (PyStringNode $ string )
219219 {
220220 $ output = $ this ->getOutput ();
221- Assert::assertNotContains ($ string ->getRaw (), $ output );
221+ Assert::assertStringNotContainsString ($ string ->getRaw (), $ output );
222222 }
223223
224224 /**
@@ -305,7 +305,7 @@ public function theFileExists($arg1)
305305 public function theOutputShouldContain (PyStringNode $ string )
306306 {
307307 foreach ($ string ->getStrings () as $ line ) {
308- Assert::assertContains ($ line , $ this ->getOutput ());
308+ Assert::assertStringContainsString ($ line , $ this ->getOutput ());
309309 }
310310 }
311311
@@ -774,7 +774,8 @@ public function thePropertyShouldHaveType($arg1, $arg2)
774774 $ property = $ session ->getItem ($ arg1 );
775775 if (!$ property instanceof PropertyInterface) {
776776 throw new \InvalidArgumentException (sprintf (
777- 'Item at "%s" is not a property ' , $ arg1
777+ 'Item at "%s" is not a property ' ,
778+ $ arg1
778779 ));
779780 }
780781
@@ -790,7 +791,8 @@ public function thePropertyShouldHaveTypeAndValue($arg1, $arg2, $arg3)
790791 $ property = $ session ->getItem ($ arg1 );
791792 if (!$ property instanceof PropertyInterface) {
792793 throw new \InvalidArgumentException (sprintf (
793- 'Item at "%s" is not a property ' , $ arg1
794+ 'Item at "%s" is not a property ' ,
795+ $ arg1
794796 ));
795797 }
796798
0 commit comments