Code Duplication    Length = 7-7 lines in 3 locations

eZ/Publish/Core/Repository/Tests/Service/Mock/ContentTest.php 3 locations

@@ 1817-1823 (lines=7) @@
1814
            ->with($this->isType('string'))
1815
            ->will(
1816
                $this->returnCallback(
1817
                    function ($languageCode) {
1818
                        if ($languageCode === 'Klingon') {
1819
                            throw new NotFoundException('Language', 'Klingon');
1820
                        }
1821
1822
                        return new Language(['id' => 4242]);
1823
                    }
1824
                )
1825
            );
1826
@@ 4609-4615 (lines=7) @@
4606
            ->with($this->isType('string'))
4607
            ->will(
4608
                $this->returnCallback(
4609
                    function ($languageCode) {
4610
                        if ($languageCode === 'Klingon') {
4611
                            throw new NotFoundException('Language', 'Klingon');
4612
                        }
4613
4614
                        return new Language(['id' => 4242]);
4615
                    }
4616
                )
4617
            );
4618
@@ 4686-4692 (lines=7) @@
4683
            ->with($this->isType('string'))
4684
            ->will(
4685
                $this->returnCallback(
4686
                    function ($languageCode) {
4687
                        if ($languageCode === 'Klingon') {
4688
                            throw new NotFoundException('Language', 'Klingon');
4689
                        }
4690
4691
                        return new Language(['id' => 4242]);
4692
                    }
4693
                )
4694
            );
4695