aboutsummaryrefslogtreecommitdiffstats
path: root/oni-php/snippets/php-mode
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2024-12-24 09:39:09 -0800
committerGravatar Tom Willemsen2024-12-24 09:39:09 -0800
commit8fa46c3639dfb5b6ca388cb123dd198a1473de7d (patch)
treec946e44bce58b27c1a998674b467d0e15def70c2 /oni-php/snippets/php-mode
parentba8d5430507ab7a0c8c142037fccc28ef629d788 (diff)
downloademacs-config-8fa46c3639dfb5b6ca388cb123dd198a1473de7d.tar.gz
emacs-config-8fa46c3639dfb5b6ca388cb123dd198a1473de7d.zip
Add PHP snippets for writing tests
Diffstat (limited to 'oni-php/snippets/php-mode')
-rw-r--r--oni-php/snippets/php-mode/test-comment9
-rw-r--r--oni-php/snippets/php-mode/test-name8
2 files changed, 17 insertions, 0 deletions
diff --git a/oni-php/snippets/php-mode/test-comment b/oni-php/snippets/php-mode/test-comment
new file mode 100644
index 0000000..7333715
--- /dev/null
+++ b/oni-php/snippets/php-mode/test-comment
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: test-comment
+# key: test
+# --
+/** @test */
+public function $1(): void
+{
+ $0
+}
diff --git a/oni-php/snippets/php-mode/test-name b/oni-php/snippets/php-mode/test-name
new file mode 100644
index 0000000..2b9d72b
--- /dev/null
+++ b/oni-php/snippets/php-mode/test-name
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: test-name
+# key: test
+# --
+public function test_$1(): void
+{
+ $0
+}