We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6f94dc commit 0e034d1Copy full SHA for 0e034d1
tests/phpunit/BltProject/GitTest.php
@@ -70,8 +70,7 @@ public function testGitPreCommitHook() {
70
// Commits must be executed inside of new project directory.
71
chdir($this->projectDirectory);
72
$prefix = $this->config['project']['prefix'];
73
- // @todo Run this script without actual commit.
74
- $command = "git commit --amend -m '$prefix-123: This is a good commit.' 2>&1";
+ $command = "./.git/hooks/pre-commit";
75
$output = shell_exec($command);
76
$this->assertNotContains('PHP Code Sniffer was not found', $output);
77
$this->assertContains('Sniffing staged files via PHP Code Sniffer.', $output);
0 commit comments