@@ -113,7 +113,7 @@ private function getXPathForFile($filename)
113
113
{
114
114
$ dom = new \DOMDocument (1.0 );
115
115
$ dom ->load ($ this ->getWorkingFilePath ($ filename ));
116
- $ xpath = new \DOMXpath ($ dom );
116
+ $ xpath = new \DOMXPath ($ dom );
117
117
118
118
return $ xpath ;
119
119
}
@@ -209,7 +209,7 @@ public function iShouldSeeATableContainingTheFollowingRows(TableNode $table)
209
209
public function iShouldSeeTheFollowing (PyStringNode $ string )
210
210
{
211
211
$ output = $ this ->getOutput ();
212
- Assert::assertContains ($ string ->getRaw (), $ output );
212
+ Assert::assertStringContainsString ($ string ->getRaw (), $ output );
213
213
}
214
214
215
215
/**
@@ -218,7 +218,7 @@ public function iShouldSeeTheFollowing(PyStringNode $string)
218
218
public function iShouldNotSeeTheFollowing (PyStringNode $ string )
219
219
{
220
220
$ output = $ this ->getOutput ();
221
- Assert::assertNotContains ($ string ->getRaw (), $ output );
221
+ Assert::assertStringNotContainsString ($ string ->getRaw (), $ output );
222
222
}
223
223
224
224
/**
@@ -305,7 +305,7 @@ public function theFileExists($arg1)
305
305
public function theOutputShouldContain (PyStringNode $ string )
306
306
{
307
307
foreach ($ string ->getStrings () as $ line ) {
308
- Assert::assertContains ($ line , $ this ->getOutput ());
308
+ Assert::assertStringContainsString ($ line , $ this ->getOutput ());
309
309
}
310
310
}
311
311
@@ -774,7 +774,8 @@ public function thePropertyShouldHaveType($arg1, $arg2)
774
774
$ property = $ session ->getItem ($ arg1 );
775
775
if (!$ property instanceof PropertyInterface) {
776
776
throw new \InvalidArgumentException (sprintf (
777
- 'Item at "%s" is not a property ' , $ arg1
777
+ 'Item at "%s" is not a property ' ,
778
+ $ arg1
778
779
));
779
780
}
780
781
@@ -790,7 +791,8 @@ public function thePropertyShouldHaveTypeAndValue($arg1, $arg2, $arg3)
790
791
$ property = $ session ->getItem ($ arg1 );
791
792
if (!$ property instanceof PropertyInterface) {
792
793
throw new \InvalidArgumentException (sprintf (
793
- 'Item at "%s" is not a property ' , $ arg1
794
+ 'Item at "%s" is not a property ' ,
795
+ $ arg1
794
796
));
795
797
}
796
798
0 commit comments