summaryrefslogtreecommitdiffstats
path: root/.vim/UltiSnips/php.snippets
diff options
context:
space:
mode:
Diffstat (limited to '.vim/UltiSnips/php.snippets')
-rw-r--r--.vim/UltiSnips/php.snippets35
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