Completed
Push — master ( 9aa90f...051175 )
by Paul
06:58
created
GitCommandBundle/Tests/GitCommands/Command/GitDiffCommandTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
         $this->updateFile('test', 'Test Data has changed');
38 38
     }
39 39
 
40
-    public function testGetPreviousCommitHash(){
40
+    public function testGetPreviousCommitHash() {
41 41
 
42 42
         $previousCommitHash = $this->gitCommands->command('diff')->getPreviousCommitHash();
43
-        $this->assertTrue(strlen($previousCommitHash) === 7,'Previous Commit hash does not equal 7 characters: '.$previousCommitHash);
43
+        $this->assertTrue(strlen($previousCommitHash) === 7, 'Previous Commit hash does not equal 7 characters: ' . $previousCommitHash);
44 44
 
45 45
     }
46 46
 
@@ -52,26 +52,26 @@  discard block
 block discarded – undo
52 52
 
53 53
         $diffs = $this->gitCommands->command('diff')->getDiffFile('test');
54 54
 
55
-        $this->assertCount(1, $diffs,'Diff count does not equal expected 17. Actual:'.count($diffs).print_r($diffs,true));
55
+        $this->assertCount(1, $diffs, 'Diff count does not equal expected 17. Actual:' . count($diffs) . print_r($diffs, true));
56 56
         foreach ($diffs as $diff) {
57 57
             $this->assertInstanceOf(GitDiff::class, $diff);
58 58
         }
59 59
     }
60 60
 
61
-    public function testGetDiffFileBetweenCommits(){
61
+    public function testGetDiffFileBetweenCommits() {
62 62
 
63 63
         $previousCommitHash = $this->gitCommands->command('diff')->getPreviousCommitHash();
64 64
 
65
-        $diffs = $this->gitCommands->command('diff')->getDiffFileBetweenCommits('test',$previousCommitHash,'HEAD');
65
+        $diffs = $this->gitCommands->command('diff')->getDiffFileBetweenCommits('test', $previousCommitHash, 'HEAD');
66 66
         foreach ($diffs as $diff) {
67 67
             $this->assertInstanceOf(GitDiff::class, $diff);
68 68
         }
69 69
     }
70 70
 
71
-    public function testGetFilesInCommit(){
71
+    public function testGetFilesInCommit() {
72 72
         $filesCommitted = $this->gitCommands->command('diff')->getFilesInCommit('HEAD');
73 73
 
74
-        $this->assertCount(1, $filesCommitted,'Only one file should have been commited. Actual:'.count($filesCommitted));
74
+        $this->assertCount(1, $filesCommitted, 'Only one file should have been commited. Actual:' . count($filesCommitted));
75 75
 
76 76
         foreach ($filesCommitted as $commitFile) {
77 77
             $this->assertInstanceOf(GitCommitFile::class, $commitFile);
Please login to merge, or discard this patch.
src/VersionControl/GitCommandBundle/Tests/GitCommands/GitDiffParserTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         $diffParser = new GitDiffParser($diffString);
61 61
         $diffs = $diffParser->parse();
62 62
         
63
-        $this->assertCount(1, $diffs,'Diff count does not equal expected 17. Actual:'.count($diffs).print_r($diffs,true));
63
+        $this->assertCount(1, $diffs, 'Diff count does not equal expected 17. Actual:' . count($diffs) . print_r($diffs, true));
64 64
         foreach ($diffs as $diff) {
65 65
             $this->assertInstanceOf(GitDiff::class, $diff);
66 66
         }
Please login to merge, or discard this patch.