Code Duplication    Length = 7-7 lines in 3 locations

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

@@ 1823-1829 (lines=7) @@
1820
            ->with($this->isType('string'))
1821
            ->will(
1822
                $this->returnCallback(
1823
                    function ($languageCode) {
1824
                        if ($languageCode === 'Klingon') {
1825
                            throw new NotFoundException('Language', 'Klingon');
1826
                        }
1827
1828
                        return new Language(array('id' => 4242));
1829
                    }
1830
                )
1831
            );
1832
@@ 4615-4621 (lines=7) @@
4612
            ->with($this->isType('string'))
4613
            ->will(
4614
                $this->returnCallback(
4615
                    function ($languageCode) {
4616
                        if ($languageCode === 'Klingon') {
4617
                            throw new NotFoundException('Language', 'Klingon');
4618
                        }
4619
4620
                        return new Language(array('id' => 4242));
4621
                    }
4622
                )
4623
            );
4624
@@ 4692-4698 (lines=7) @@
4689
            ->with($this->isType('string'))
4690
            ->will(
4691
                $this->returnCallback(
4692
                    function ($languageCode) {
4693
                        if ($languageCode === 'Klingon') {
4694
                            throw new NotFoundException('Language', 'Klingon');
4695
                        }
4696
4697
                        return new Language(array('id' => 4242));
4698
                    }
4699
                )
4700
            );
4701