From 0f5fb2ce24adb69454ec59f60179a1a2b1bfaf87 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 29 Oct 2016 14:11:21 +0200 Subject: misc Signed-off-by: Florian Pritz --- .vim/UltiSnips/php.snippets | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to '.vim') diff --git a/.vim/UltiSnips/php.snippets b/.vim/UltiSnips/php.snippets index 903b1ed..86c4ee1 100644 --- a/.vim/UltiSnips/php.snippets +++ b/.vim/UltiSnips/php.snippets @@ -9,3 +9,38 @@ snippet copy "Copyright notice" b */ endsnippet + +snippet testclass "Test class for filebin" b + + * + * Licensed under AGPLv3 + * (see COPYING for full license text) + * + */ + +namespace test\tests; + +class `!p +snip.rv = re.match(r'.*(?=\.)', fn).group() +` extends \test\Test { + + public function __construct() + { + parent::__construct(); + } + + public function init() + { + } + + public function cleanup() + { + } + + $0 + +} + +endsnippet -- cgit v1.2.3-24-g4f1b