Code Duplication    Length = 14-14 lines in 2 locations

tests/unit/AllOfFilterTest.php 1 location

@@ 52-65 (lines=14) @@
49
        static::assertFalse($filter->matches(['test' => 'values', 'test2' => 'value2']));
50
    }
51
52
    public function testMultipleChildrenWithTheSameProperty()
53
    {
54
        $filter = new AllOfFilter([
55
            new ClosureFilter('test', function ($actual) {
56
                return $actual != 'foo';
57
            }),
58
            new ClosureFilter('test', function ($actual) {
59
                return $actual != 'bar';
60
            }),
61
        ]);
62
        static::assertTrue($filter->matches(['test' => 'value']));
63
        static::assertFalse($filter->matches(['test' => 'foo']));
64
        static::assertFalse($filter->matches(['test' => 'bar']));
65
    }
66
67
    public function testFilterCanBeInvoked()
68
    {

tests/unit/OneOfFilterTest.php 1 location

@@ 54-67 (lines=14) @@
51
        static::assertFalse($filter->matches(['test' => 'values', 'test2' => 'value3']));
52
    }
53
54
    public function testMultipleChildrenWithTheSameProperty()
55
    {
56
        $filter = new OneOfFilter([
57
            new ClosureFilter('test', function ($actual) {
58
                return $actual == 'foo';
59
            }),
60
            new ClosureFilter('test', function ($actual) {
61
                return $actual == 'bar';
62
            }),
63
        ]);
64
        static::assertFalse($filter->matches(['test' => 'value']));
65
        static::assertTrue($filter->matches(['test' => 'foo']));
66
        static::assertTrue($filter->matches(['test' => 'bar']));
67
    }
68
69
    public function testFilterCanBeInvoked()
70
    {