From d8468edadcfc778a92fafd4849d3f5e6ceb94bd8 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 22 Jan 2025 12:23:12 -0800 Subject: [PATCH] oni-php: Add snippet for test class --- oni-php/snippets/php-mode/test-class | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 oni-php/snippets/php-mode/test-class 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