Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 1061-1071 (lines=11) @@
1058
            );
1059
        }
1060
1061
        if (!is_file($fixture)) {
1062
            if (isset($_ENV['ez_tests_record'])) {
1063
                file_put_contents(
1064
                    $record = $fixture . '.recording',
1065
                    "<?php\n\nreturn " . var_export($result, true) . ";\n\n"
1066
                );
1067
                $this->markTestIncomplete("No fixture available. Result recorded at $record. Result: \n" . $this->printResult($result));
1068
            } else {
1069
                $this->markTestIncomplete("No fixture available. Set \$_ENV['ez_tests_record'] to generate:\n " . $fixture);
1070
            }
1071
        }
1072
1073
        $fixture = include $fixture;
1074

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

@@ 4371-4381 (lines=11) @@
4368
            );
4369
        }
4370
4371
        if (!is_file($fixtureFilePath)) {
4372
            if (isset($_ENV['ez_tests_record'])) {
4373
                file_put_contents(
4374
                    $record = $fixtureFilePath . '.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:\n " . $fixtureFilePath);
4380
            }
4381
        }
4382
4383
        $fixture = require $fixtureFilePath;
4384