Code Duplication    Length = 8-8 lines in 2 locations

packages/autoloader/tests/php/tests/unit/test-path-processor.php 2 locations

@@ 84-91 (lines=8) @@
81
	/**
82
	 * Tests that find_directory_with_autoloader finds directories for plugins that have the autoloader.
83
	 */
84
	public function test_finds_directory_for_autoloaded_plugin() {
85
		$path = $this->processor->find_directory_with_autoloader(
86
			'dummy_current/dummy_current.php',
87
			array( TEST_DATA_PATH . '/plugins' )
88
		);
89
90
		$this->assertEquals( TEST_DATA_PATH . '/plugins/dummy_current', $path );
91
	}
92
93
	/**
94
	 * Tests that find_directory_with_autoloader finds directories using Windows paths.
@@ 96-103 (lines=8) @@
93
	/**
94
	 * Tests that find_directory_with_autoloader finds directories using Windows paths.
95
	 */
96
	public function test_finds_directory_for_autoloaded_plugin_with_windows_paths() {
97
		$path = $this->processor->find_directory_with_autoloader(
98
			'dummy_current\dummy_current.php',
99
			array( WP_PLUGIN_DIR )
100
		);
101
102
		$this->assertEquals( TEST_DATA_PATH . '/plugins/dummy_current', $path );
103
	}
104
}
105