@@ -74,15 +74,15 @@ You can customize the default settings by specifying either a [DSN string](https
74
74
as extension configuration values:
75
75
76
76
``` xml
77
- <extension class =" Tarantool\PhpUnit\Annotation" >
77
+ <extension class =" Tarantool\PhpUnit\Annotation\AnnotationExtension " >
78
78
<arguments >
79
79
<string >tcp://127.0.0.1:3301/?socket_timeout=10</string >
80
80
</arguments >
81
81
</extension >
82
82
```
83
83
or
84
84
``` xml
85
- <extension class =" Tarantool\PhpUnit\Annotation" >
85
+ <extension class =" Tarantool\PhpUnit\Annotation\AnnotationExtension " >
86
86
<arguments >
87
87
<array >
88
88
<element key =" uri" >
@@ -101,7 +101,7 @@ which might be useful if you need to share the same settings with a Tarantool
101
101
instance file or any other script:
102
102
103
103
``` xml
104
- <extension class =" Tarantool\PhpUnit\Annotation" >
104
+ <extension class =" Tarantool\PhpUnit\Annotation\AnnotationExtension " >
105
105
<arguments >
106
106
<string >tcp://%env(TARANTOOL_HOST)%:%env(TARANTOOL_PORT)%</string >
107
107
</arguments >
@@ -114,6 +114,10 @@ Once the annotations are configured, you can start using them:
114
114
115
115
#### Lua
116
116
117
+ Allows executing Lua code before running a test.
118
+
119
+ * Example:*
120
+
117
121
``` php
118
122
/**
119
123
* @lua tube:put('kick_me')
@@ -127,6 +131,10 @@ public function testKickReleasesBuriedTask() : void
127
131
128
132
#### Sql
129
133
134
+ Allows executing SQL statements before running a test (requires Tarantool 2.0+).
135
+
136
+ * Example:*
137
+
130
138
``` php
131
139
/**
132
140
* @sql DROP TABLE IF EXISTS foobar
@@ -142,6 +150,8 @@ public function testExecuteQueryFetchesAllRows() : void
142
150
143
151
### Requirements
144
152
153
+ Requirements allow skipping tests based on preconditions.
154
+
145
155
#### ClientPacker
146
156
147
157
* Format:*
@@ -208,7 +218,7 @@ public function testPrepareCreatesPreparedStatement() : void
208
218
209
219
> * Note*
210
220
>
211
- > If you're interested in how to create and register your own annotations,
221
+ > If you're interested in how to create and register your own annotations and requirements ,
212
222
> please refer to the ` rybakit/phpunit-extras ` [ README] ( https://github.com/rybakit/phpunit-extras ) .
213
223
214
224
0 commit comments