diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-10-29 14:11:21 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-10-29 14:11:21 +0200 |
commit | 0f5fb2ce24adb69454ec59f60179a1a2b1bfaf87 (patch) | |
tree | f3be993d186b06e85c6a94c1f3f27b63ae0fbcf3 /.vim | |
parent | b18bf71e78becc8a7188d3479f0958d74a1686cd (diff) | |
download | dotfiles-0f5fb2ce24adb69454ec59f60179a1a2b1bfaf87.tar.gz dotfiles-0f5fb2ce24adb69454ec59f60179a1a2b1bfaf87.tar.xz |
misc
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to '.vim')
-rw-r--r-- | .vim/UltiSnips/php.snippets | 35 |
1 files changed, 35 insertions, 0 deletions
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 +<?php +/* + * Copyright `date +%Y` Florian "Bluewind" Pritz <bluewind@server-speed.net> + * + * 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 |