Skip to content

Commit 80e664a

Browse files
MedUnesxabbuh
MedUnes
authored andcommitted
correct PHP code
1 parent b091786 commit 80e664a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

form/unit_testing.rst

+6-5
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ allows you to return a list of extensions to register::
196196
$this->validator
197197
->method('validate')
198198
->will($this->returnValue(new ConstraintViolationList()));
199-
$validator
199+
$this->validator
200200
->method('getMetadataFor')
201201
->will($this->returnValue(new ClassMetadata(Form::class)));
202202

@@ -222,14 +222,15 @@ a good opportunity to use them::
222222

223223
class TestedTypeTest extends TypeTestCase
224224
{
225-
/**
226-
* @dataProvider getValidTestData
227-
*/
225+
228226
public function testForm($data)
229227
{
230228
// ... your test
231229
}
232-
230+
231+
/**
232+
* @dataProvider getValidTestData
233+
*/
233234
public function getValidTestData()
234235
{
235236
return array(

0 commit comments

Comments
 (0)