We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5812cba commit e7af732Copy full SHA for e7af732
UltiSnips/php-phpspec.snippets
@@ -0,0 +1,38 @@
1
+# Snippets for phpspec
2
+
3
+priority -50
4
5
+snippet spec "phpspec class" b
6
+<?php
7
8
+namespace `!p
9
+relpath = os.path.relpath(path)
10
+m = re.search(r'[A-Z].+(?=/)', relpath)
11
+if m:
12
+ snip.rv = m.group().replace('/', '\\')
13
+`;
14
15
+use PhpSpec\ObjectBehavior;
16
+use Prophecy\Argument;
17
18
+/**
19
+ * @author `!v g:snips_author`
20
+ */
21
+class `!p
22
+snip.rv = re.match(r'.*(?=\.)', fn).group()
23
+` extends ObjectBehavior
24
+{
25
+ public function it${1:_does_something}()
26
+ {
27
+ $0
28
+ }
29
+}
30
+endsnippet
31
32
+snippet it "phpspec function it..." b
33
+public function it${1:_does_something}()
34
35
36
37
38
0 commit comments