summaryrefslogtreecommitdiff
path: root/luasnip_snippets/php-phpspec.json
blob: 70b77f01b4aa1e373cd3b0ddfa663218d6ead9a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
{
  "cw": {
    "prefix": "cw",
    "description": "$this->beConstructedWith($arg)",
    "body": "\\$this->beConstructedWith($1);"
  },
  "ct": {
    "prefix": "ct",
    "description": "$this->beConstructedThrough($methodName, [$arg])",
    "body": "\\$this->beConstructedThrough(${1:'methodName'}, [${2:'\\$arg'}]);"
  },
  "sreturn": {
    "prefix": "sreturn",
    "description": "$this->XYZ()->shouldReturn('value')",
    "body": "\\$this->${1:method}()->shouldReturn(${2:'value'});"
  },
  "snreturn": {
    "prefix": "snreturn",
    "description": "$this->XYZ()->shouldNotReturn('value')",
    "body": "\\$this->${1:method}()->shouldNotReturn(${2:'value'});"
  },
  "sbe": {
    "prefix": "sbe",
    "description": "$this->XYZ()->shouldBe('value')",
    "body": "\\$this->${1:method}()->shouldBe(${2:'value'});"
  },
  "snbe": {
    "prefix": "snbe",
    "description": "$this->XYZ()->shouldNotBe('value')",
    "body": "\\$this->${1:method}()->shouldNotBe(${2:'value'});"
  },
  "sequal": {
    "prefix": "sequal",
    "description": "$this->XYZ()->shouldEqual('value')",
    "body": "\\$this->${1:method}()->shouldEqual(${2:'value'});"
  },
  "snequal": {
    "prefix": "snequal",
    "description": "$this->XYZ()->shouldNotEqual('value')",
    "body": "\\$this->${1:method}()->shouldNotEqual(${2:'value'});"
  },
  "sbequalto": {
    "prefix": "sbequalto",
    "description": "$this->XYZ()->shouldBeEqualTo('value')",
    "body": "\\$this->${1:method}()->shouldBeEqualTo(${2:'value'});"
  },
  "snbequalto": {
    "prefix": "snbequalto",
    "description": "$this->XYZ()->shouldNotBeEqualTo('value')",
    "body": "\\$this->${1:method}()->shouldNotBeEqualTo(${2:'value'});"
  },
  "sblike": {
    "prefix": "sblike",
    "description": "$this->XYZ()->shouldBeLike('value')",
    "body": "\\$this->${1:method}()->shouldBeLike(${2:'value'});"
  },
  "snblike": {
    "prefix": "snblike",
    "description": "$this->XYZ()->shouldNotBeLike('value')",
    "body": "\\$this->${1:method}()->shouldNotBeLike(${2:'value'});"
  },
  "sthrowm": {
    "prefix": "sthrowm",
    "description": "$this->shouldThrow('\\Exception')->duringXYZ($arg)",
    "body": "\\$this->shouldThrow(${1:'\\Exception'})->during${2:Method}(${3:'\\$arg'});"
  },
  "sthrowi": {
    "prefix": "sthrowi",
    "description": "$this->shouldThrow('\\Exception')->duringInstantiation()",
    "body": "\\$this->shouldThrow(${1:'\\Exception'})->duringInstantiation();"
  },
  "stype": {
    "prefix": "stype",
    "description": "$this->shouldHaveType('Type')",
    "body": "\\$this->shouldHaveType($1);"
  },
  "sntype": {
    "prefix": "sntype",
    "description": "$this->shouldNotHaveType('Type')",
    "body": "\\$this->shouldNotHaveType($1);"
  },
  "srinstance": {
    "prefix": "srinstance",
    "description": "$this->shouldReturnAnInstanceOf('Type')",
    "body": "\\$this->shouldReturnAnInstanceOf($1);"
  },
  "snrinstance": {
    "prefix": "snrinstance",
    "description": "$this->shouldNotReturnAnInstanceOf('Type')",
    "body": "\\$this->shouldNotReturnAnInstanceOf($1);"
  },
  "sbinstance": {
    "prefix": "sbinstance",
    "description": "$this->shouldBeAnInstanceOf('Type')",
    "body": "\\$this->shouldBeAnInstanceOf($1);"
  },
  "snbinstance": {
    "prefix": "snbinstance",
    "description": "$this->shouldNotBeAnInstanceOf('Type')",
    "body": "\\$this->shouldNotBeAnInstanceOf($1);"
  },
  "simplement": {
    "prefix": "simplement",
    "description": "$this->shouldImplement('Type')",
    "body": "\\$this->shouldImplement($1);"
  },
  "snimplement": {
    "prefix": "snimplement",
    "description": "$this->shouldNotImplement('Type')",
    "body": "\\$this->shouldNotImplement($1);"
  },
  "sbstate": {
    "prefix": "sbstate",
    "description": "$this->shouldBeXYZ()",
    "body": "\\$this->shouldBe$1();"
  },
  "snbstate": {
    "prefix": "snbstate",
    "description": "$this->shouldNotBeXYZ()",
    "body": "\\$this->shouldNotBe$1();"
  },
  "scount": {
    "prefix": "scount",
    "description": "$this->XYZ()->shouldHaveCount(7)",
    "body": "\\$this->${1:method}()->shouldHaveCount(${2:7});"
  },
  "sncount": {
    "prefix": "sncount",
    "description": "$this->XYZ()->shouldNotHaveCount(7)",
    "body": "\\$this->${1:method}()->shouldNotHaveCount(${2:7});"
  },
  "sbscalar": {
    "prefix": "sbscalar",
    "description": "$this->XYZ()->shouldBeString|Array|Bool()",
    "body": "\\$this->${1:method}()->shouldBe${2:String|Array|Bool}();"
  },
  "snbscalar": {
    "prefix": "snbscalar",
    "description": "$this->XYZ()->shouldNotBeString|Array|Bool()",
    "body": "\\$this->${1:method}()->shouldNotBe${2:String|Array|Bool}();"
  },
  "scontain": {
    "prefix": "scontain",
    "description": "$this->XYZ()->shouldContain('value')",
    "body": "\\$this->${1:method}()->shouldContain(${2:'value'});"
  },
  "sncontain": {
    "prefix": "sncontain",
    "description": "$this->XYZ()->shouldNotContain('value')",
    "body": "\\$this->${1:method}()->shouldNotContain(${2:'value'});"
  },
  "skey": {
    "prefix": "skey",
    "description": "$this->XYZ()->shouldHaveKey('key')",
    "body": "\\$this->${1:method}()->shouldHaveKey(${2:'key'});"
  },
  "snkey": {
    "prefix": "snkey",
    "description": "$this->XYZ()->shouldNotHaveKey('key')",
    "body": "\\$this->${1:method}()->shouldNotHaveKey(${2:'key'});"
  },
  "skeyvalue": {
    "prefix": "skeyvalue",
    "description": "$this->XYZ()->shouldHaveKeyWithValue('key', 'value')",
    "body": "\\$this->${1:method}()->shouldHaveKeyWithValue(${2:'key'}, ${3:'value'});"
  },
  "snkeyvalue": {
    "prefix": "snkeyvalue",
    "description": "$this->XYZ()->shouldNotHaveKeyWithValue('key', 'value')",
    "body": "\\$this->${1:method}()->shouldNotHaveKeyWithValue(${2:'key'}, ${3:'value'});"
  },
  "sstart": {
    "prefix": "sstart",
    "description": "$this->XYZ()->shouldStartWith('string')",
    "body": "\\$this->${1:method}()->shouldStartWith(${2:'string'});"
  },
  "snstart": {
    "prefix": "snstart",
    "description": "$this->XYZ()->shouldNotStartWith('string')",
    "body": "\\$this->${1:method}()->shouldNotStartWith(${2:'string'});"
  },
  "send": {
    "prefix": "send",
    "description": "$this->XYZ()->shouldEndWith('string')",
    "body": "\\$this->${1:method}()->shouldEndWith(${2:'string'});"
  },
  "snend": {
    "prefix": "snend",
    "description": "$this->XYZ()->shouldNotEndWith('string')",
    "body": "\\$this->${1:method}()->shouldNotEndWith(${2:'string'});"
  },
  "smatch": {
    "prefix": "smatch",
    "description": "$this->XYZ()->shouldMatch('/wizard/i')",
    "body": "\\$this->${1:method}()->shouldMatch(${2:'/wizard/i'});"
  },
  "snmatch": {
    "prefix": "snmatch",
    "description": "$this->XYZ()->shouldNotMatch('/wizard/i')",
    "body": "\\$this->${1:method}()->shouldNotMatch(${2:'/wizard/i'});"
  }
}