Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b279dcb

Browse files
committed
[Validator] Fix a deprecated method call in the tests
1 parent d0aaf62 commit b279dcb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Component/Validator/Tests/Constraints/ChoiceValidatorTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\Validator\Tests\Constraints;
1313

14-
use Symfony\Component\Validator\ExecutionContext;
1514
use Symfony\Component\Validator\Constraints\Choice;
1615
use Symfony\Component\Validator\Constraints\ChoiceValidator;
1716

@@ -37,7 +36,7 @@ protected function setUp()
3736
$this->validator->initialize($this->context);
3837

3938
$this->context->expects($this->any())
40-
->method('getCurrentClass')
39+
->method('getClassName')
4140
->will($this->returnValue(__CLASS__));
4241
}
4342

0 commit comments

Comments
 (0)