Code Duplication    Length = 11-11 lines in 2 locations

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

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

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

@@ 4404-4414 (lines=11) @@
4401
            );
4402
        }
4403
4404
        if (!is_file($fixture)) {
4405
            if (isset($_ENV['ez_tests_record'])) {
4406
                file_put_contents(
4407
                    $record = $fixture . '.recording',
4408
                    "<?php\n\nreturn " . var_export($result, true) . ";\n\n"
4409
                );
4410
                $this->markTestIncomplete("No fixture available. Result recorded at $record. Result: \n" . $this->printResult($result));
4411
            } else {
4412
                $this->markTestIncomplete("No fixture available. Set \$_ENV['ez_tests_record'] to generate it.");
4413
            }
4414
        }
4415
4416
        $fixture = include $fixture;
4417