Skip to content

Commit f8c75a0

Browse files
Update errors in context base script
1 parent 9a84bc1 commit f8c75a0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/PHPCR/Shell/Test/ContextBase.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}
@@ -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

Comments
 (0)