|
7 | 7 | * For the full copyright and license information, please view the LICENSE |
8 | 8 | * file that was distributed with this source code. |
9 | 9 | */ |
| 10 | + |
10 | 11 | namespace SebastianBergmann\Diff\Output; |
11 | 12 |
|
12 | 13 | use PHPUnit\Framework\TestCase; |
|
15 | 16 | /** |
16 | 17 | * @covers SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder |
17 | 18 | * |
18 | | - * @uses SebastianBergmann\Diff\Differ |
19 | | - * @uses SebastianBergmann\Diff\Output\AbstractChunkOutputBuilder |
20 | | - * @uses SebastianBergmann\Diff\TimeEfficientLongestCommonSubsequenceCalculator |
| 19 | + * @uses SebastianBergmann\Diff\Differ |
| 20 | + * @uses SebastianBergmann\Diff\Output\AbstractChunkOutputBuilder |
| 21 | + * @uses SebastianBergmann\Diff\TimeEfficientLongestCommonSubsequenceCalculator |
21 | 22 | */ |
22 | 23 | final class UnifiedDiffOutputBuilderTest extends TestCase |
23 | 24 | { |
@@ -82,27 +83,27 @@ public function provideDiffWithLineNumbers(): array |
82 | 83 | return UnifiedDiffOutputBuilderDataProvider::provideDiffWithLineNumbers(); |
83 | 84 | } |
84 | 85 |
|
85 | | - /** |
86 | | - * @param string $from |
87 | | - * @param string $to |
88 | | - * |
89 | | - * @dataProvider provideStringsThatAreTheSame |
90 | | - */ |
| 86 | + /** |
| 87 | + * @param string $from |
| 88 | + * @param string $to |
| 89 | + * |
| 90 | + * @dataProvider provideStringsThatAreTheSame |
| 91 | + */ |
91 | 92 | public function testEmptyDiffProducesEmptyOutput(string $from, string $to): void |
92 | | - { |
93 | | - $differ = new Differ(new UnifiedDiffOutputBuilder('', false)); |
94 | | - $output = $differ->diff($from, $to); |
95 | | - $this->assertEmpty($output); |
96 | | - } |
| 93 | + { |
| 94 | + $differ = new Differ(new UnifiedDiffOutputBuilder('', false)); |
| 95 | + $output = $differ->diff($from, $to); |
| 96 | + $this->assertEmpty($output); |
| 97 | + } |
97 | 98 |
|
98 | | - public function provideStringsThatAreTheSame(): array |
99 | | - { |
100 | | - return [ |
101 | | - ['', ''], |
102 | | - ['a', 'a'], |
103 | | - ['these strings are the same', 'these strings are the same'], |
104 | | - ["\n", "\n"], |
105 | | - ["multi-line strings\nare the same", "multi-line strings\nare the same"] |
106 | | - ]; |
107 | | - } |
| 99 | + public function provideStringsThatAreTheSame(): array |
| 100 | + { |
| 101 | + return [ |
| 102 | + ['', ''], |
| 103 | + ['a', 'a'], |
| 104 | + ['these strings are the same', 'these strings are the same'], |
| 105 | + ["\n", "\n"], |
| 106 | + ["multi-line strings\nare the same", "multi-line strings\nare the same"] |
| 107 | + ]; |
| 108 | + } |
108 | 109 | } |
0 commit comments