aboutsummaryrefslogtreecommitdiffstats
path: root/oni-php
diff options
context:
space:
mode:
authorGravatar Tom Willemse2025-01-22 12:23:12 -0800
committerGravatar Tom Willemse2025-01-22 12:23:12 -0800
commitd8468edadcfc778a92fafd4849d3f5e6ceb94bd8 (patch)
tree4f36c609d6ace577f8b13e7779a6261e803de1c9 /oni-php
parent097630b001e620119855f587800ab9e7dd590e2b (diff)
downloademacs-config-d8468edadcfc778a92fafd4849d3f5e6ceb94bd8.tar.gz
emacs-config-d8468edadcfc778a92fafd4849d3f5e6ceb94bd8.zip
oni-php: Add snippet for test class
Diffstat (limited to 'oni-php')
-rw-r--r--oni-php/snippets/php-mode/test-class15
1 files changed, 15 insertions, 0 deletions
diff --git a/oni-php/snippets/php-mode/test-class b/oni-php/snippets/php-mode/test-class
new file mode 100644
index 0000000..c758fb4
--- /dev/null
+++ b/oni-php/snippets/php-mode/test-class
@@ -0,0 +1,15 @@
+# -*- mode: snippet -*-
+# name: test-class
+# key: test
+# --
+
+use Illuminate\Foundation\Testing\RefreshDatabase;
+use Illuminate\Foundation\Testing\WithFaker;
+use Tests\TestCase;
+
+class ${1:`(file-name-sans-extension (file-name-nondirectory (buffer-file-name)))`} extends TestCase
+{
+ use RefreshDatabase, WithFaker;
+
+ $0
+} \ No newline at end of file