Skip to content

Commit c6f30b2

Browse files
SpacePossumsebastianbergmann
authored andcommitted
Clean up the test suit.
1 parent 52a3981 commit c6f30b2

13 files changed

+703
-616
lines changed

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
"src/"
2626
]
2727
},
28+
"autoload-dev": {
29+
"classmap": [
30+
"tests/"
31+
]
32+
},
2833
"extra": {
2934
"branch-alias": {
3035
"dev-master": "2.0-dev"

src/Differ.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
namespace SebastianBergmann\Diff;
1212

13+
use SebastianBergmann\Diff\InvalidArgumentException;
1314
use SebastianBergmann\Diff\Output\DiffOutputBuilderInterface;
1415
use SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder;
1516

@@ -105,13 +106,13 @@ public function diffToArray($from, $to, LongestCommonSubsequenceCalculator $lcs
105106
if (\is_string($from)) {
106107
$from = $this->splitStringByLines($from);
107108
} elseif (!\is_array($from)) {
108-
throw new \InvalidArgumentException('"from" must be an array or string.');
109+
throw new InvalidArgumentException('"from" must be an array or string.');
109110
}
110111

111112
if (\is_string($to)) {
112113
$to = $this->splitStringByLines($to);
113114
} elseif (!\is_array($to)) {
114-
throw new \InvalidArgumentException('"to" must be an array or string.');
115+
throw new InvalidArgumentException('"to" must be an array or string.');
115116
}
116117

117118
list($from, $to, $start, $end) = self::getArrayDiffParted($from, $to);

src/Output/DiffOnlyOutputBuilder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10+
1011
namespace SebastianBergmann\Diff\Output;
1112

1213
/**

src/Output/DiffOutputBuilderInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10+
1011
namespace SebastianBergmann\Diff\Output;
1112

1213
/**

0 commit comments

Comments
 (0)