You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicfunctiontestSeekable()
{
$seekPosition = 2;
$nodes = array();
$i = 0;
foreach ($this->nodeIteratoras$path => $node) {
if ($i++ == $seekPosition) {
$seekNode = $node;
$seekKey = $path;
}
}
// note that in php 5.3.3, the array iterator gets the seek wrong and wants a string position instead of a number. according to the doc, we test for the correct behaviour here.$this->nodeIterator->seek($seekPosition);
$this->assertEquals($seekKey, $this->nodeIterator->key());
$this->assertEquals($seekNode, $this->nodeIterator->current());
}
i.e. the API tests test with an integer, but jackalope expects a nodeName.
Doctrine DBAL skips this test:
// this seems a bug in php with arrayiterator - and jackalope is using
// arrayiterator for the search result
// TODO https://github.com/phpcr/phpcr-api-tests/issues/22
'Query\\NodeViewTest::testSeekable',
Activity
dbu commentedon Oct 20, 2014
oh, indeed. yeah i think the reporter closed it when there was no more error showing in the tests.
did you check php 5.4 or newer, was this fixed?