Code Duplication    Length = 7-7 lines in 3 locations

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

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