Code Duplication    Length = 9-9 lines in 2 locations

projects/packages/autoloader/tests/php/tests/unit/PathProcessorTest.php 2 locations

@@ 50-58 (lines=9) @@
47
	/**
48
	 * Tests that the processor is able to successfully tokenize and untokenize paths.
49
	 */
50
	public function test_handles_path_tokenization_and_untokenization() {
51
		$path = $this->processor->tokenize_path_constants( TEST_PLUGIN_DIR );
52
53
		$this->assertEquals( '{{WP_PLUGIN_DIR}}/current', $path );
54
55
		$path = $this->processor->untokenize_path_constants( $path );
56
57
		$this->assertEquals( TEST_PLUGIN_DIR, $path );
58
	}
59
60
	/**
61
	 * Tests that the processor is able to successfully tokenize and untokenize paths on Windows.
@@ 63-71 (lines=9) @@
60
	/**
61
	 * Tests that the processor is able to successfully tokenize and untokenize paths on Windows.
62
	 */
63
	public function test_handles_path_tokenization_and_untokenization_with_windows_paths() {
64
		$path = $this->processor->tokenize_path_constants( str_replace( '/', '\\', TEST_PLUGIN_DIR ) );
65
66
		$this->assertEquals( '{{WP_PLUGIN_DIR}}/current', $path );
67
68
		$path = $this->processor->untokenize_path_constants( $path );
69
70
		$this->assertEquals( TEST_PLUGIN_DIR, $path );
71
	}
72
73
	/**
74
	 * Tests that the processor resolves symlinks when untokenizing.