@@ -343,7 +343,7 @@ |
||
| 343 | 343 | * NOTE: this will do an assertion in the hope to ensure |
| 344 | 344 | * sanity of the test double |
| 345 | 345 | * |
| 346 | - * @return \GitElephant\Objects\Remote |
|
| 346 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 347 | 347 | */ |
| 348 | 348 | public function getMockRemote() |
| 349 | 349 | { |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | /** |
| 126 | 126 | * @param string $name file name |
| 127 | 127 | * @param string|null $folder folder name |
| 128 | - * @param null $content content |
|
| 128 | + * @param null|string $content content |
|
| 129 | 129 | * @param Repository $repository repository to add file to |
| 130 | 130 | * |
| 131 | 131 | * @return void |
@@ -281,6 +281,17 @@ discard block |
||
| 281 | 281 | return $mockRepo; |
| 282 | 282 | } |
| 283 | 283 | |
| 284 | + /** |
|
| 285 | + * @param string $sha |
|
| 286 | + * @param string $tree |
|
| 287 | + * @param string $author |
|
| 288 | + * @param string $committer |
|
| 289 | + * @param string $emailAuthor |
|
| 290 | + * @param string $emailCommitter |
|
| 291 | + * @param string $datetimeAuthor |
|
| 292 | + * @param string $datetimeCommitter |
|
| 293 | + * @param string $message |
|
| 294 | + */ |
|
| 284 | 295 | protected function doCommitTest( |
| 285 | 296 | Commit $commit, |
| 286 | 297 | $sha, |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | * @param string $cmd the command to execute |
| 72 | 72 | * @param bool $git if the command is git or a generic command |
| 73 | 73 | * @param string $cwd the directory where the command must be executed |
| 74 | - * @param array $acceptedExitCodes exit codes accepted to consider the command execution successful |
|
| 74 | + * @param integer[] $acceptedExitCodes exit codes accepted to consider the command execution successful |
|
| 75 | 75 | * |
| 76 | 76 | * @throws \RuntimeException |
| 77 | 77 | * @throws \Symfony\Component\Process\Exception\InvalidArgumentException |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | namespace GitElephant\Command; |
| 15 | 15 | |
| 16 | -use GitElephant\Command\BranchCommand; |
|
| 17 | 16 | use GitElephant\TestCase; |
| 18 | 17 | |
| 19 | 18 | /** |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | |
| 10 | 10 | namespace GitElephant\Command; |
| 11 | 11 | |
| 12 | -use GitElephant\Objects\Commit; |
|
| 13 | 12 | use GitElephant\TestCase; |
| 14 | 13 | |
| 15 | 14 | class ResetCommandTest extends TestCase |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use GitElephant\Objects\Commit; |
| 18 | 18 | use GitElephant\Command\ShowCommand; |
| 19 | 19 | use GitElephant\Command\MainCommand; |
| 20 | -use GitElephant\Command\CommandContainer; |
|
| 21 | 20 | |
| 22 | 21 | /** |
| 23 | 22 | * CommitTest |
@@ -18,13 +18,8 @@ |
||
| 18 | 18 | use GitElephant\Objects\Diff\DiffObject; |
| 19 | 19 | use GitElephant\Objects\Diff\DiffChunk; |
| 20 | 20 | use GitElephant\Objects\Diff\DiffChunkLine; |
| 21 | -use GitElephant\Objects\Diff\DiffChunkLineAdded; |
|
| 22 | -use GitElephant\Objects\Diff\DiffChunkLineDeleted; |
|
| 23 | -use GitElephant\Objects\Diff\DiffChunkLineUnchanged; |
|
| 24 | -use GitElephant\Objects\Commit; |
|
| 25 | 21 | use GitElephant\Command\MainCommand; |
| 26 | 22 | use GitElephant\Command\DiffCommand; |
| 27 | -use GitElephant\Command\ShowCommand; |
|
| 28 | 23 | |
| 29 | 24 | /** |
| 30 | 25 | * DiffTest |
@@ -13,10 +13,7 @@ |
||
| 13 | 13 | |
| 14 | 14 | namespace GitElephant\Objects; |
| 15 | 15 | |
| 16 | -use GitElephant\Repository; |
|
| 17 | 16 | use GitElephant\TestCase; |
| 18 | -use GitElephant\Objects\Log; |
|
| 19 | -use GitElephant\Command\LogCommand; |
|
| 20 | 17 | |
| 21 | 18 | /** |
| 22 | 19 | * LogRangeTest |