17
17
18
18
$ next = fn ($ files ) => 'passed ' ;
19
19
20
- $ hook = new ConcreteBaseCodeAnalyzerFixture () ;
20
+ $ hook = new ConcreteBaseCodeAnalyzerFixture ;
21
21
$ result = $ hook ->handleCommittedFiles ($ changedFiles , $ next );
22
22
expect ($ result )->toBe ('passed ' );
23
23
});
28
28
29
29
$ next = fn ($ files ) => 'passed ' ;
30
30
31
- $ hook = new ConcreteBaseCodeAnalyzerFixture () ;
31
+ $ hook = new ConcreteBaseCodeAnalyzerFixture ;
32
32
$ result = $ hook ->handleCommittedFiles ($ changedFiles , $ next );
33
33
expect ($ result )->toBe ('passed ' );
34
34
})->with ('modifiedFilesList ' );
@@ -44,7 +44,7 @@ function ($configName, $nonExistentPathConfig, $preCommitHookClass, $listOfFixab
44
44
GitHooks::shouldReceive ('isMergeInProgress ' )->andReturn (false );
45
45
GitHooks::shouldReceive ('getListOfChangedFiles ' )->andReturn ($ listOfFixablePhpFiles );
46
46
47
- $ preCommitHook = new $ preCommitHookClass() ;
47
+ $ preCommitHook = new $ preCommitHookClass ;
48
48
$ this ->artisan ('git-hooks:pre-commit ' )
49
49
->expectsOutputToContain ($ preCommitHook ->getName ().' is not installed. ' )
50
50
->assertExitCode (1 );
@@ -62,7 +62,7 @@ function ($configName, $nonExistentPathConfig, $preCommitHookClass, $listOfFixab
62
62
GitHooks::shouldReceive ('isMergeInProgress ' )->andReturn (false );
63
63
GitHooks::shouldReceive ('getListOfChangedFiles ' )->andReturn ($ listOfFixablePhpFiles );
64
64
65
- $ preCommitHook = new $ preCommitHookClass() ;
65
+ $ preCommitHook = new $ preCommitHookClass ;
66
66
$ this ->artisan ('git-hooks:pre-commit ' )
67
67
->expectsOutputToContain ($ preCommitHook ->getName ().' config file does not exist. ' )
68
68
->assertExitCode (1 );
0 commit comments