Code Duplication    Length = 6-6 lines in 2 locations

tests/ElasticsearchFunctionalTestBase.php 1 location

@@ 59-64 (lines=6) @@
56
57
		$orig_fixture_file = static::$fixture_file;
58
59
		foreach (static::$ignoreFixtureFileFor as $testPattern) {
60
			$pattern = '/'.$testPattern.'/';
61
			if (preg_match($pattern, $this->getName())) {
62
				static::$fixture_file = null;
63
			}
64
		}
65
66
		parent::setUp();
67
		static::$fixture_file = $orig_fixture_file;

tests/ElasticsearchTestBase.php 1 location

@@ 63-68 (lines=6) @@
60
61
		$orig_fixture_file = static::$fixture_file;
62
63
		foreach (static::$ignoreFixtureFileFor as $testPattern) {
64
			$pattern = '/'.$testPattern.'/';
65
			if (preg_match($pattern, $this->getName())) {
66
				static::$fixture_file = null;
67
			}
68
		}
69
70
		parent::setUp();
71
		static::$fixture_file = $orig_fixture_file;