Skip to content

Commit

Permalink
[ci] fix build stability
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent4vx committed Feb 25, 2022
1 parent 74d67f1 commit 8d7cc65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Query/RecursiveClauseIterator.php
Expand Up @@ -20,15 +20,15 @@ final class RecursiveClauseIterator extends ArrayIterator implements RecursiveIt
/**
* {@inheritdoc}
*/
public function hasChildren()
public function hasChildren(): bool
{
return !empty($this->current()['nested']);
}

/**
* {@inheritdoc}
*/
public function getChildren()
public function getChildren(): RecursiveClauseIterator
{
return new static($this->current()['nested']);
}
Expand Down
5 changes: 4 additions & 1 deletion tests/Storage/Instant/TimeInstantTest.php
Expand Up @@ -56,6 +56,9 @@ public function test_next()
$storage = $this->createMock(ReportStorageInterface::class);
$storage->expects($this->never())->method('instants');

$this->assertEqualsWithDelta(new TimeInstant(new \DateTime()), $this->factory->next($storage), 0.1);
$instant = $this->factory->next($storage);

$this->assertInstanceOf(TimeInstant::class, $instant);
$this->assertEqualsWithDelta(new \DateTime(), new \DateTime($instant->value()), 1);
}
}

0 comments on commit 8d7cc65

Please sign in to comment.