Skip to content

Commit 06b1e5d

Browse files
committed
minor symfony#18287 [3.0] fix mocking of some methods (xabbuh)
This PR was merged into the 3.0 branch. Discussion ---------- [3.0] fix mocking of some methods | Q | A | ------------- | --- | Branch? | 3.0 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | items 1 and 2 of sebastianbergmann/phpunit-mock-objects#299 (comment) | License | MIT | Doc PR | Commits ------- 07308e9 [3.0] fix mocking of some methods
2 parents abbc7e3 + 07308e9 commit 06b1e5d

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,6 @@ public function testNoViolationIfAllowExtraData()
623623

624624
$context->expects($this->never())
625625
->method('addViolation');
626-
$context->expects($this->never())
627-
->method('addViolationAt');
628626

629627
$this->validator->initialize($context);
630628
$this->validator->validate($form, new Form());

src/Symfony/Component/Form/Tests/Extension/Validator/ValidatorExtensionTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ public function test2Dot5ValidationApi()
3838
->method('addPropertyConstraint')
3939
->with('children', $this->isInstanceOf('Symfony\Component\Validator\Constraints\Valid'));
4040

41-
$validator
42-
->expects($this->never())
43-
->method('getMetadataFactory');
44-
4541
$extension = new ValidatorExtension($validator);
4642
$guesser = $extension->loadTypeGuesser();
4743

0 commit comments

Comments
 (0)