aboutsummaryrefslogtreecommitdiffstats
path: root/oni-php
diff options
context:
space:
mode:
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