From 474e5740f3f83aced71b7417b92bba0c9cf0c482 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 29 Nov 2023 09:42:19 +0000 Subject: [PATCH] Update PHP test method snippets --- lua/opdavies/snippets/ft/php.lua | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/lua/opdavies/snippets/ft/php.lua b/lua/opdavies/snippets/ft/php.lua index 12835e0..0321559 100644 --- a/lua/opdavies/snippets/ft/php.lua +++ b/lua/opdavies/snippets/ft/php.lua @@ -7,8 +7,6 @@ local i = ls.insert_node local t = ls.text_node local M = { - - func = fmta("function <>(<>)<> {\n <>\n}<>", { i(1), i(2), i(3), i(4), i(0) }), met = fmta( @@ -24,12 +22,21 @@ local M = { test = fmta( [[ - /** @test */ - public function <><>(): void { + public function test<>(): void { <> }<> ]], - { c(1, { t "test", t "it", t "should" }), i(2), i(3), i(0) } + { i(1), i(2), i(0) } + ), + + testa = fmta( + [[ + /** @test */ + public function <>(): void { + <> + }<> + ]], + { i(1), i(2), i(0) } ), }