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

@@ 4371-4381 (lines=11) @@
4368
            );
4369
        }
4370
4371
        if (!is_file($fixture)) {
4372
            if (isset($_ENV['ez_tests_record'])) {
4373
                file_put_contents(
4374
                    $record = $fixture . '.recording',
4375
                    "<?php\n\nreturn " . var_export($result, true) . ";\n\n"
4376
                );
4377
                $this->markTestIncomplete("No fixture available. Result recorded at $record. Result: \n" . $this->printResult($result));
4378
            } else {
4379
                $this->markTestIncomplete("No fixture available. Set \$_ENV['ez_tests_record'] to generate it.");
4380
            }
4381
        }
4382
4383
        $fixture = include $fixture;
4384