Code Duplication    Length = 7-7 lines in 3 locations

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

@@ 1852-1858 (lines=7) @@
1849
            ->with($this->isType('string'))
1850
            ->will(
1851
                $this->returnCallback(
1852
                    function ($languageCode) {
1853
                        if ($languageCode === 'Klingon') {
1854
                            throw new NotFoundException('Language', 'Klingon');
1855
                        }
1856
1857
                        return new Language(['id' => 4242]);
1858
                    }
1859
                )
1860
            );
1861
@@ 4635-4641 (lines=7) @@
4632
            ->with($this->isType('string'))
4633
            ->will(
4634
                $this->returnCallback(
4635
                    function ($languageCode) {
4636
                        if ($languageCode === 'Klingon') {
4637
                            throw new NotFoundException('Language', 'Klingon');
4638
                        }
4639
4640
                        return new Language(['id' => 4242]);
4641
                    }
4642
                )
4643
            );
4644
@@ 4712-4718 (lines=7) @@
4709
            ->with($this->isType('string'))
4710
            ->will(
4711
                $this->returnCallback(
4712
                    function ($languageCode) {
4713
                        if ($languageCode === 'Klingon') {
4714
                            throw new NotFoundException('Language', 'Klingon');
4715
                        }
4716
4717
                        return new Language(['id' => 4242]);
4718
                    }
4719
                )
4720
            );
4721