Skip to content

Commit a06ebde

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

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"behat/behat": "^3.10",
2020
"phpspec/phpspec": "^7.2",
2121
"jackalope/jackalope-doctrine-dbal": "^1.3",
22-
"jackalope/jackalope-jackrabbit": "^1.3",
22+
"jackalope/jackalope-jackrabbit": "^1.4.3",
2323
"phpspec/prophecy-phpunit": "^2.0"
2424
},
2525
"suggest": {

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)