Code Duplication    Length = 11-11 lines in 2 locations

eZ/Publish/API/Repository/Tests/SearchServiceLocationTest.php 1 location

@@ 1046-1056 (lines=11) @@
1043
            );
1044
        }
1045
1046
        if (!is_file($fixture)) {
1047
            if (isset($_ENV['ez_tests_record'])) {
1048
                file_put_contents(
1049
                    $record = $fixture . '.recording',
1050
                    "<?php\n\nreturn " . var_export($result, true) . ";\n\n"
1051
                );
1052
                $this->markTestIncomplete("No fixture available. Result recorded at $record. Result: \n" . $this->printResult($result));
1053
            } else {
1054
                $this->markTestIncomplete("No fixture available. Set \$_ENV['ez_tests_record'] to generate it.");
1055
            }
1056
        }
1057
1058
        $fixture = include $fixture;
1059

eZ/Publish/API/Repository/Tests/SearchServiceTest.php 1 location

@@ 4600-4610 (lines=11) @@
4597
            throw $e;
4598
        }
4599
4600
        if (!is_file($fixture)) {
4601
            if (isset($_ENV['ez_tests_record'])) {
4602
                file_put_contents(
4603
                    $record = $fixture . '.recording',
4604
                    "<?php\n\nreturn " . var_export($result, true) . ";\n\n"
4605
                );
4606
                $this->markTestIncomplete("No fixture available. Result recorded at $record. Result: \n" . $this->printResult($result));
4607
            } else {
4608
                $this->markTestIncomplete("No fixture available. Set \$_ENV['ez_tests_record'] to generate it.");
4609
            }
4610
        }
4611
4612
        $fixture = include $fixture;
4613