Code Duplication    Length = 10-10 lines in 2 locations

tests/ElasticaSpecification/ExpressionBuilder/AndXBuilderTest.php 1 location

@@ 73-82 (lines=10) @@
70
    }
71
72
73
    public function testBuildThrowExceptionIfNotAndXSpecification()
74
    {
75
        $spec = $this->createMock(Specification::class);
76
        $registry = new Registry();
77
        $builder = new AndXBuilder($registry);
78
79
        $this->setExpectedException(\InvalidArgumentException::class);
80
81
        $expr = $builder->build($spec, new QueryBuilder());
82
    }
83
}
84

tests/ElasticaSpecification/ExpressionBuilder/NotBuilderTest.php 1 location

@@ 71-80 (lines=10) @@
68
    }
69
70
71
    public function testBuildThrowExceptionIfNotNotSpecification()
72
    {
73
        $spec = $this->createMock(Specification::class);
74
        $registry = new Registry();
75
        $builder = new NotBuilder($registry);
76
77
        $this->setExpectedException(\InvalidArgumentException::class);
78
79
        $expr = $builder->build($spec, new QueryBuilder());
80
    }
81
}
82