We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e492101 commit ba27b7dCopy full SHA for ba27b7d
tests/end-to-end/info.phpt
@@ -0,0 +1,24 @@
1
+--TEST--
2
+captainhook commit-msg
3
+--FILE--
4
+<?php
5
+define('CH_TEST_BIN', $_SERVER['CH_TEST_BIN'] ?? 'bin/captainhook');
6
+echo shell_exec(
7
+ // call command without color
8
+ CH_TEST_BIN . ' info --list-actions --no-ansi ' .
9
+ // use e2e configuration
10
+ '--configuration=tests/_files/e2e/config-ok.json'
11
+);
12
+--EXPECTF--
13
+commit-msg
14
+ - \CaptainHook\App\Hook\Message\Action\Beams
15
+pre-push
16
+ - echo foo
17
+pre-commit
18
19
+prepare-commit-msg
20
+post-commit
21
+post-merge
22
+post-checkout
23
+post-rewrite
24
+post-change
0 commit comments