Skip to content

Commit a7de501

Browse files
committed
circular import removed
1 parent 001f397 commit a7de501

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/Views/ArrayView.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ public function toArray(): array
7777
/**
7878
* {@inheritDoc}
7979
*/
80-
public function filter(callable $predicate): ArrayMaskView
80+
public function filter(callable $predicate): ArrayViewInterface
8181
{
8282
return $this->is($predicate)->select($this);
8383
}
8484

8585
/**
8686
* {@inheritDoc}
8787
*/
88-
public function is(callable $predicate): MaskSelector
88+
public function is(callable $predicate): ArraySelectorInterface
8989
{
9090
return new MaskSelector(array_map($predicate, $this->toArray()));
9191
}

tests/unit/Examples/ExamplesTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class ExamplesTest extends \Codeception\Test\Unit
1313
{
1414
public function testSlicing()
1515
{
16-
new SliceSelector('::');
1716
$originalArray = [1, 2, 3, 4, 5, 6, 7, 8, 9];
1817
$originalView = ArrayView::toView($originalArray);
1918

@@ -91,9 +90,4 @@ public function testCombinedSubview()
9190
$subview[':'] = [55, 77];
9291
$this->assertSame([1, 2, 3, 4, 55, 6, 77, 8, 9, 10], $originalArray);
9392
}
94-
95-
protected function _setUp()
96-
{
97-
$_ = new MaskSelector([]); // TODO why for 7.4???
98-
}
9993
}

0 commit comments

Comments
 (0)