We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b091786 commit 80e664aCopy full SHA for 80e664a
form/unit_testing.rst
@@ -196,7 +196,7 @@ allows you to return a list of extensions to register::
196
$this->validator
197
->method('validate')
198
->will($this->returnValue(new ConstraintViolationList()));
199
- $validator
+ $this->validator
200
->method('getMetadataFor')
201
->will($this->returnValue(new ClassMetadata(Form::class)));
202
@@ -222,14 +222,15 @@ a good opportunity to use them::
222
223
class TestedTypeTest extends TypeTestCase
224
{
225
- /**
226
- * @dataProvider getValidTestData
227
- */
+
228
public function testForm($data)
229
230
// ... your test
231
}
232
-
+ /**
+ * @dataProvider getValidTestData
233
+ */
234
public function getValidTestData()
235
236
return array(
0 commit comments