Code Duplication    Length = 6-6 lines in 2 locations

tests/ElasticsearchTestBase.php 1 location

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

tests/ElasticsearchFunctionalTestBase.php 1 location

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