From 8fa46c3639dfb5b6ca388cb123dd198a1473de7d Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 24 Dec 2024 09:39:09 -0800 Subject: [PATCH] Add PHP snippets for writing tests --- oni-php/snippets/php-mode/test-comment | 9 +++++++++ oni-php/snippets/php-mode/test-name | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 oni-php/snippets/php-mode/test-comment create mode 100644 oni-php/snippets/php-mode/test-name 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 +}