Code Duplication    Length = 7-7 lines in 3 locations

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

@@ 1808-1814 (lines=7) @@
1805
            ->with($this->isType('string'))
1806
            ->will(
1807
                $this->returnCallback(
1808
                    function ($languageCode) {
1809
                        if ($languageCode === 'Klingon') {
1810
                            throw new NotFoundException('Language', 'Klingon');
1811
                        }
1812
1813
                        return new Language(array('id' => 4242));
1814
                    }
1815
                )
1816
            );
1817
@@ 4587-4593 (lines=7) @@
4584
            ->with($this->isType('string'))
4585
            ->will(
4586
                $this->returnCallback(
4587
                    function ($languageCode) {
4588
                        if ($languageCode === 'Klingon') {
4589
                            throw new NotFoundException('Language', 'Klingon');
4590
                        }
4591
4592
                        return new Language(array('id' => 4242));
4593
                    }
4594
                )
4595
            );
4596
@@ 4662-4668 (lines=7) @@
4659
            ->with($this->isType('string'))
4660
            ->will(
4661
                $this->returnCallback(
4662
                    function ($languageCode) {
4663
                        if ($languageCode === 'Klingon') {
4664
                            throw new NotFoundException('Language', 'Klingon');
4665
                        }
4666
4667
                        return new Language(array('id' => 4242));
4668
                    }
4669
                )
4670
            );
4671