File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ abstract class TestCase extends PHPUnitTestCase
1515 private $ tempTestDir ;
1616 private $ initialGlobalHookDir ;
1717
18- private $ shouldSignGpg ;
19-
2018 final public function setUp (): void
2119 {
2220 $ this ->initialGlobalHookDir = global_hook_dir ();
@@ -25,8 +23,7 @@ final public function setUp(): void
2523 mkdir ($ this ->tempTestDir );
2624 chdir ($ this ->tempTestDir );
2725 shell_exec ('git init ' );
28- $ this ->shouldSignGpg = shell_exec ('git config --global commit.gpgsign false ' );
29- shell_exec ('git config --global commit.gpgsign false ' );
26+ shell_exec ('git config commit.gpgsign false ' );
3027 shell_exec (
'git config user.email "[email protected] " ' );
3128 shell_exec ('git config user.name "Composer Git Hooks" ' );
3229
@@ -39,7 +36,6 @@ final public function setUp(): void
3936
4037 final public function tearDown (): void
4138 {
42- shell_exec ('git config --global commit.gpgsign ' .$ this ->shouldSignGpg );
4339 chdir ('.. ' );
4440 self ::rmdir ($ this ->tempTestDir );
4541 $ this ->restoreGlobalHookDir ();
You can’t perform that action at this time.
0 commit comments