Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class FixedLengthDigitPostalCodeValidatorTest extends \PHPUnit_Framework_TestCas
protected function setUp()
{
$this->validator = new FixedLengthDigitPostalCodeValidator();
$this->context = $this->getMock(ExecutionContextInterface::class);
$this->context = $this->createMock(ExecutionContextInterface::class);
$this->validator->initialize($this->context);
}

Expand Down
6 changes: 3 additions & 3 deletions Tests/Validator/RegexPostalCodeValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class RegexPostalCodeValidatorTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
{
$this->regexValidator = $this->getMock(ConstraintValidatorInterface::class);
$this->notBlankValidator = $this->getMock(ConstraintValidatorInterface::class);
$this->regexValidator = $this->createMock(ConstraintValidatorInterface::class);
$this->notBlankValidator = $this->createMock(ConstraintValidatorInterface::class);
$this->validator = new RegexPostalCodeValidator($this->regexValidator, $this->notBlankValidator);
}

Expand All @@ -29,7 +29,7 @@ public function testValidateInitializesAndDelegatesOnValidators()
{
$constraint = new PostalCodeConstraint();
$constraint->message = 'message';
$context = $this->getMock(ExecutionContextInterface::class);
$context = $this->createMock(ExecutionContextInterface::class);
$value = 'i am a value';
$this->regexValidator
->expects($this->at(0))
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"require-dev": {
"symfony/validator": "~2.7|~3.0",
"phpunit/phpunit": "4.*",
"phpunit/phpunit": "~5.7",
"mockery/mockery": "~0.9.0",
"symfony/console": "~2.7|~3.0"
},
Expand Down