Code Duplication    Length = 6-6 lines in 2 locations

tests/ElasticsearchFunctionalTestBase.php 1 location

@@ 68-73 (lines=6) @@
65
			// load fixtures
66
			$orig_fixture_file = static::$fixture_file;
67
68
			foreach(static::$ignoreFixtureFileFor as $testPattern) {
69
				$pattern = '/' . $testPattern . '/';
70
				if(preg_match($pattern, $this->getName())) {
71
					static::$fixture_file = null;
72
				}
73
			}
74
		} catch (Exception $e) {
75
			error_log('**** T1 EXCEPTION ' . $e->getMessage());
76
			$elasticaException = true;

tests/ElasticsearchTestBase.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
		} catch (Exception $e) {
73
			$elasticException = true;